Part Number Hot Search : 
BT261 BDY37A X0405 GSX8A MT9671 AV300 C2611 0213800P
Product Description
Full Text Search
 

To Download SAA7108AE Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  d a t a sh eet product speci?cation supersedes data of 2003 mar 26 2004 jun 29 integrated circuits SAA7108AE; saa7109ae hd-codec
2004 jun 29 2 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae contents 1 features 1.1 video decoder 1.2 video scaler 1.3 video encoder 1.4 common features 2 applications 3 general description 4 ordering information 5 quick reference data 6 block diagrams 7 pinning 8 functional description of digital video encoder part 8.1 reset conditions 8.2 input formatter 8.3 rgb lut 8.4 cursor insertion 8.5 rgb y-c b -c r matrix 8.6 horizontal scaler 8.7 vertical scaler and anti-flicker filter 8.8 fifo 8.9 border generator 8.10 oscillator and discrete time oscillator (dto) 8.11 low-pass clock generation circuit (cgc) 8.12 encoder 8.13 rgb processor 8.14 triple dac 8.15 hd data path 8.16 timing generator 8.17 pattern generator for hd sync pulses 8.18 i 2 c-bus interface 8.19 power-down modes 8.20 programming the graphics acquisition scaler of the video encoder 8.21 input levels and formats 9 functional description of digital video decoder part 9.1 decoder 9.2 decoder output formatter 9.3 scaler 9.4 vbi data decoder and capture (subaddresses 40h to 7fh) 9.5 image port output formatter (subaddresses 84h to 87h) 9.6 audio clock generation (subaddresses 30h to 3fh) 10 input/output interfaces and ports of digital video decoder part 10.1 analog terminals 10.2 audio clock signals 10.3 clock and real-time synchronization signals 10.4 video expansion port (x port) 10.5 image port (i port) 10.6 host port for 16-bit extension of video data i/o (h port) 10.7 basic input and output timing diagrams for the i and x ports 11 boundary scan test 11.1 initialization of boundary scan circuit 11.2 device identification codes 12 limiting values 13 thermal characteristics 14 characteristics of the digital video encoder part 15 characteristics of the digital video decoder part 16 timing 16.1 digital video encoder part 16.2 digital video decoder part 17 application information 17.1 reconstruction filter 17.2 analog output voltages 17.3 suggestions for a board layout 18 i 2 c-bus description 18.1 digital video encoder part 18.2 digital video decoder part 19 programming start set-up of digital video decoder part 19.1 decoder part 19.2 audio clock generation part 19.3 data slicer and data type control part 19.4 scaler and interfaces 20 package outline 21 soldering 22 data sheet status 23 definitions 24 disclaimers 25 purchase of philips i 2 c components
2004 jun 29 3 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 1 features 1.1 video decoder six analog inputs, internal analog source selectors, e.g. 6 cvbs or (2 y/c and 2 cvbs) or (1 y/c and 4 cvbs) two analog preprocessing channels in differential cmos style for best s/n performance fully programmable static gain or automatic gain control (agc) for the selected cvbs or y/c channel switchable white peak control two built-in analog anti-aliasing filters two 9-bit video cmos analog-to-digital converters (adcs), digitized cvbs or y/c signals are available on the image port data (ipd) port under i 2 c-bus control on-chip clock generator line-locked system clock frequencies digital pll for horizontal sync processing and clock generation, horizontal and vertical sync detection requires only one crystal (either 24.576 mhz or 32.11 mhz) for all standards automatic detection of 50 and 60 hz field frequency, and automatic switching between pal and ntsc standards luminance and chrominance signal processing for pal bghi, pal n, combination pal n, pal m, ntsc m, ntsc-japan, ntsc n, ntsc 4.43 and secam user programmable luminance peaking or aperture correction cross-colour reduction for ntsc by chrominance comb filtering pal delay line for correcting pal phase errors brightness contrast saturation (bcs) and hue control on-chip two multi functional real-time output pins controlled by the i 2 c-bus multi-standard vbi data slicer decoding world standard teletext (wst), north-american broadcast text system (nabts), closed caption (cc), wide screen signalling (wss), video programming system (vps), vertical interval time code (vitc) variants (ebu/smpte) etc. standard itu 656 y-c b -c r 4:2:2 format (8-bit) on ipd output bus enhanced itu 656 output format on ipd output bus containing: C active video C raw cvbs data for intercast applications (27 mhz data rate) C decoded vbi data detection of copy protected input signals according to the macrovision ? (1) standard. can be used to prevent unauthorized recording of pay-tv or video tape signals. 1.2 video scaler both up and downscaling conversion to square pixel format ntsc to 288 lines (video phone) phase accuracy better than 1 / 64 pixel or line, horizontally or vertically independent scaling definitions for odd and even fields anti-alias filter for horizontal scaling provides output as: C scaled active video C raw cvbs data for intercast, wave-phore, popcon applications or general vbi data decoding (27 mhz or sample rate converted) local video output for y-c b -c r 4 : 2 : 2 format (vmi, vip, zv). (1) macrovision ? is a trademark of the macrovision corporation.
2004 jun 29 4 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 1.3 video encoder digital pal/ntsc encoder with integrated high quality scaler and anti-flicker filter for tv output from a pc supports intel a digital video out (dvo) low voltage interfacing to graphics controller 27 mhz crystal-stable subcarrier generation maximum graphics pixel clock 85 mhz at double edged clocking, synthesized on-chip or from external source programmable assignment of clock edge to bytes (in double edged mode) synthesizable pixel clock (pixclk) with minimized output jitter, can be used as reference clock for the vgc, as well pixclk output and bi-phase pixclk input (vgc clock loop-through possible) hot-plug detection through dedicated interrupt pin supported vga resolutions for pal or ntsc legacy video output up to 1280 1024 graphics data at 60 or 50 hz frame rate supported vga resolutions for hdtv output up to 1920 1080 interlaced graphics data at 60 or 50 hz frame rate three digital-to-analog converters (dacs) for cvbs (blue, c b ), vbs (green, cvbs) and c (red, c r )at 27 mhz sample rate (signals in parenthesis are optionally selected), all at 10-bit resolution non-interlaced c b -y-c r or rgb input at maximum 4:4:4 sampling downscaling and upscaling from 50 to 400 % optional interlaced c b -y-c r input of digital versatile disk (dvd) signals optional non-interlaced rgb output to drive second vga monitor (bypass mode, maximum 85 mhz) 3 256 bytes rgb look-up table (lut) support for hardware cursor hdtv up to 1920 1080 interlaced and 1280 720 progressive, including 3-level sync pulses programmable border colour of underscan area programmable 5 line anti-flicker filter on-chip 27 mhz crystal oscillator (3rd-harmonic or fundamental 27 mhz crystal) fast i 2 c-bus control port (400 khz) encoder can be master or slave adjustable output levels for the dacs programmable horizontal and vertical input synchronization phase programmable horizontal sync output phase internal colour bar generator (cbg) optional support of various vertical blanking interval (vbi) data insertion macrovision pay-per-view copy protection system rev. 7.01, rev. 6.1 and rev. 1.03 (525p) as option; this applies to SAA7108AE only. the device is protected by usa patent numbers 4631603, 4577216 and 4819098 and other intellectual property rights. use of the macrovision anti-copy process in the device is licensed for non-commercial home use only. reverse engineering or disassembly is prohibited. please contact your nearest philips semiconductors sales office for more information. 1.4 common features 5 v tolerant digital i/o ports i 2 c-bus controlled (full read-back ability by an external controller, bit rate up to 400 kbits/s) versatile power-save modes boundary scan test circuit complies with the ieee std. 1149.b1-1994 (separate id codes for decoder and encoder) monolithic cmos 3.3 v device bga156 package moisture sensitive level (msl): e3. 2 applications notebook (low-power consumption) pcmcia card application agp based graphics cards pc editing image processing video phone applications intercast and pc teletext applications security applications hybrid satellite set-top boxes.
2004 jun 29 5 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 3 general description the SAA7108AE; saa7109ae is a new multi-standard video decoder and encoder chip, offering high quality video input and tv output processing as required by pc-99 specifications. it enables hardware manufacturers to implement versatile video functions on a significantly reduced printed-circuit board area at very competitive costs. separate pins for supply voltages as well as for i 2 c-bus control and boundary scan test have been provided for the video encoder and decoder sections to ensure both flexible handling and optimized noise behaviour. the video encoder is used to encode pc graphics data at maximum 1280 1024 resolution (optionally 1920 1080 interlaced) to pal (50 hz) or ntsc (60 hz) video signals. a programmable scaler and anti-flicker filter (maximum 5 lines) ensures properly sized and flicker-free tv display as cvbs or s-video output. alternatively, the three digital-to-analog converters (dacs) can output rgb signals together with a ttl composite sync to feed scart connectors. when the scaler/interlacer is bypassed, a second vga monitor can be connected to the rgb outputs and separate h and v-syncs as well, thereby serving as an auxiliary monitor at maximum 1280 1024 resolution/60 hz (pixclk < 85 mhz). alternatively this port can provide y, p b and p r signals for hdtv monitors. the encoder section includes a sync/clock generator and on-chip dacs. all inputs intended to interface to the host graphics controller are designed for low-voltage signals down to 1.1 v and up to 3.45 v. the video decoder , a 9-bit video input processor, is a combination of a 2-channel analog pre-processing circuit including source selection, anti-aliasing filter and analog-to-digital converter (adc), automatic clamp and gain control, a clock generation circuit (cgc), and a digital multi-standard decoder (pal bghi, pal m, pal n, combination pal n, ntsc m, ntsc-japan, ntsc n, ntsc 4.43 and secam). the decoder includes a brightness, contrast and saturation control circuit, a multi-standard vbi data slicer and a 27 mhz vbi data bypass. the pure 3.3 v (5 v compatible) cmos circuit SAA7108AE; saa7109ae, consisting of an analog front-end and digital video decoder, a digital video encoder and analog back-end, is a highly integrated circuit especially designed for desktop video applications. the decoder is based on the principle of line-locked clock decoding and is able to decode the colour of pal, secam and ntsc signals into itu-r bt.601 compatible colour component values. the encoder can operate fully independently at its own variable pixel clock, transporting graphics input data, and at the line-locked, single crystal-stable video encoding clock. as an option, it is possible to slave the video pal/ntsc encoding to the video decoder clock with the encoder fifo acting as a buffer to decouple the line-locked decoder clock from the crystal-stable encoder clock. 4 ordering information type number package name description version SAA7108AE bga156 plastic ball grid array package; 156 balls; body 15 15 1.15 mm sot472-1 saa7109ae
2004 jun 29 6 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 5 quick reference data note 1. power dissipation is extremely dependent on programming and selected application. symbol parameter conditions min. typ. max. unit v ddd digital supply voltage 3.15 3.3 3.45 v v dda analog supply voltage 3.15 3.3 3.45 v t amb ambient temperature 0 - 70 c p a+d analog and digital power dissipation note 1 -- 1.7 w 6 block diagrams handbook, full pagewidth analog video acquisition and demodulator scaler video decoder part video encoder part x port i port (ipd) digital video input and output scaler and interlacer video encoder cvbs, y/c y-c b -c r /rgb pd analog video input digital video graphics input digital video output cvbs, y/c rgb analog video output mhb903 fig.1 simplified block diagram.
2004 jun 29 7 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... a ndbook, full pagewidth vertical scaler vertical filter horizontal scaler decimator 4 : 4 : 4 to 4 : 2 : 2 triple dac blue_cb_cvbs green_vbs_cvbs red_cr_c_cvbs c6 c7 c8 hsm_csync vsm d7 d8 tvd f12 border generator fifo lut and cursor rgb to y-c b -c r matrix fifo and upsampling video encoder hd output i 2 c-bus control crystal oscillator timing generator g1 a6 a5 c3 fsvgc vsvgc xtaloe 27 mhz ttx_sres xtalie hsvgc cbo ttxrq_xclko2 f1 g3 g2 sdae scle e2 d2 e3 c4 pixel clock synthesizer input formatter c1, c2, b1, b2, a2, b4, b3, a3, f3, h1, h2, h3 f2 pd11 to pd0 pixclki g4 pixclko mbl785 SAA7108AE saa7109ae rese fig.2 block diagram (video encoder part).
2004 jun 29 8 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... k , full pagewidth fir-prefilter prescaler and scaler bcs general purpose vbi data slicer video/text arbiter text fifo video fifo programming register array a/b register mux event controller image port pin mapping x port i/o formatting expansion port pin mapping i/o control i 2 c-bus real-time output llc p8 ai2d line fifo buffer vertical scaling horizontal fine (phase) scaling 32 to 8(16) mux g14 itri n10 agnd p12 ai1d m10 aout p6 ai24 p7 ai23 p9 ai22 p10 ai21 p11 ai12 p13 ai11 p3 xtalod p2 xtalid p4 xtoutd n14 ce m12 m14 n4 tclkd m6 tmsd m5 tdid n6 v ddxd l8 v ssxd p5 v ddid d11, f11, j4, j11, l4, l11 v dded d10, g11, l7, l9 v ddad m8, m9, n11 v ssid e11, k4, k11 v ssed h4, h11, l6, m13 v ssad m7, n7 to n9, n12, n13 amxclk j12 tdod n5 amclk k12 alrclk j13 asclk k14 llc2 l14 rtco l13 rts0 k13 rts1 l10 xclk m3 xdq m4 k2, k3, l1 to l3 m1, m2, n1 xrh n2 xrv l5 xrdy n3 sdad l12 scld m11 test5 j2 test4 j1 test3 j3 test2 c10 test1 b10 test0 h13 a13, d12, c12, b12, a12, c11, b11, a11 xtri k1 chrominance of 16-bit input boundary scan test clock generation and power-on control analog dual adc digital decoder with adaptive comb filter audio clock generation j14 itrdy h12 iclk g13 igp1 f14 igp0 f13 igpv g12 igph h14 idq e14, d14, c14, b14, e13, d13, c13, b13 ipd [ 7:0 ] hpd [ 7:0 ] xpd [ 7:0 ] resd SAA7108AE saa7109ae trstd (1) (1) mbl791 fig.3 block diagram (video decoder part). (1) the pins rtco and alrclk are used for configuration of the i 2 c-bus interface and the definition of the crystal oscillator frequency at reset (pin strapping).
2004 jun 29 9 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 7 pinning symbol pin type (1) description pd7 a2 i msb of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment pd4 a3 i msb - 3 of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment trst e a4 i/pu test reset input for boundary scan test (bst) (encoder); active low; with internal pull-up; notes 2 and 3 xtalie a5 i 27 mhz crystal input (encoder) xtaloe a6 o 27 mhz crystal output (encoder) dump a7 o dac reference pin (encoder), 12 w resistor connected to v ssae v ssxe a8 s ground for oscillator (encoder) rset a9 o dac reference pin (encoder), 1 k w resistor connected to v ssae v ddae a10 s 3.3 v analog supply voltage (encoder) hpd0 a11 i/o msb - 7 of host port data (hpd) output bus hpd3 a12 i/o msb - 4 of hpd output bus hpd7 a13 i/o msb of hpd output bus pd9 b1 i see tables 9, 14 and 15 for pin assignment with different encoder input formats pd8 b2 i see tables 9, 14 and 15 for pin assignment with different encoder input formats pd5 b3 i msb - 2 of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment pd6 b4 i msb - 1 of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment tdie b5 i/pu test data input for bst (encoder); note 4 v ddae b6 s 3.3 v analog supply voltage (encoder) dump b7 o dac reference pin (encoder); connected to a7 v ssae b8 s analog ground (encoder) v ddae b9 s 3.3 v analog supply voltage (encoder) test1 b10 i scan test input 1, do not connect hpd1 b11 i/o msb - 6 of hpd output bus hpd4 b12 i/o msb - 3 of hpd output bus ipd0 b13 o msb - 7 of ipd output bus ipd4 b14 o msb - 3 of image port data (ipd) output bus pd11 c1 i see tables 9, 14 and 15 for pin assignment with different encoder input formats pd10 c2 i see tables 9, 14 and 15 for pin assignment with different encoder input formats ttx_sres c3 i teletext input or sync reset input (encoder) ttxrq_xclko2 c4 o teletext request output or 13.5 mhz clock output of the crystal oscillator (encoder) v ssie c5 s digital ground core (encoder) blue_cb_cvbs c6 o blue or c b or cvbs output
2004 jun 29 10 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae green_vbs_cvbs c7 o green or vbs or cvbs output red_cr_c_cvbs c8 o red or c r or c or cvbs output v ddae c9 s 3.3 v analog supply voltage (encoder) test2 c10 i scan test input 2, do not connect hpd2 c11 i/o msb - 5 of hpd output bus hpd5 c12 i/o msb - 2 of hpd output bus ipd1 c13 o msb - 6 of ipd output bus ipd5 c14 o msb - 2 of ipd output bus tdoe d1 o test data output for bst (encoder); note 4 rese d2 i reset input (encoder); active low tmse d3 i/pu test mode select input for bst (encoder); note 4 v ddiee d4 s 3.3 v digital supply voltage for core and peripheral cells (encoder) v ssie d5 s digital ground core (encoder) v ddxe d6 s 3.3 v supply voltage for oscillator (encoder) vsm d7 o vertical synchronization output to vga monitor (non-interlaced) hsm_csync d8 o horizontal synchronization output to vga monitor (non-interlaced) or composite sync for rgb-scart v ddae d9 s 3.3 v analog supply voltage (encoder) v dded d10 s 3.3 v digital supply voltage for peripheral cells (decoder) v ddid d11 s 3.3 v digital supply voltage for core (decoder) hpd6 d12 i/o msb - 1 of hpd output bus ipd2 d13 o msb - 5 of ipd output bus ipd6 d14 o msb - 1 of ipd output bus tcke e1 i/pu test clock input for bst (encoder); note 4 scle e2 i i 2 c-bus serial clock input (encoder) hsvgc e3 i/o horizontal synchronization output to video graphics controller (vgc) (optional input) v ssee e4 s digital ground peripheral cells (encoder) v ssid e11 s digital ground core (decoder) n.c. e12 - not connected ipd3 e13 o msb - 4 of ipd output bus ipd7 e14 o msb of ipd output bus vsvgc f1 i/o vertical synchronization output to vgc (optional input) pixclki f2 i pixel clock input (looped through) pd3 f3 i msb - 4 of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment v dd(dvo) f4 s digital supply voltage for dvo cells v ddid f11 s 3.3 v digital supply voltage for core (decoder) tvd f12 o tv detector; hot-plug interrupt pin, high if tv is connected igpv f13 o multi-purpose vertical reference output with ipd output bus igp0 f14 o general purpose output signal 0 with ipd output bus symbol pin type (1) description
2004 jun 29 11 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae fsvgc g1 i/o frame synchronization output to vgc (optional input) sdae g2 i/o i 2 c-bus serial data input/output (encoder) cbo g3 o composite blanking output to vgc; active low pixclko g4 o pixel clock output to vgc v dded g11 s 3.3 v digital supply voltage for peripheral cells (decoder) igph g12 o multi-purpose horizontal reference output with ipd output bus igp1 g13 o general purpose output signal 1 with ipd output bus itri g14 i/(o) programmable control signals for ipd output bus pd2 h1 i msb - 5 of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment pd1 h2 i msb - 6 of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment pd0 h3 i msb - 7 of encoder input bus with c b -y-c r 4 : 2 : 2; see tables 9 to 15 for pin assignment v ssed h4 s digital ground for peripheral cells (decoder) v ssed h11 s digital ground for peripheral cells (decoder) iclk h12 i/o clock for ipd output bus (optional clock input) test0 h13 o scan test output, do not connect idq h14 o data quali?er for ipd output bus test4 j1 o scan test output, do not connect test5 j2 i scan test input, do not connect test3 j3 i scan test input, do not connect v ddid j4 s 3.3 v digital supply voltage for core (decoder) v ddid j11 s 3.3 v digital supply voltage for core (decoder) amxclk j12 i audio master external clock input alrclk j13 (i/)o audio left/right clock output; can be strapped to supply via a 3.3 k w resistor to indicate that the default 24.576 mhz crystal (alrclk = 0; internal pull-down) has been replaced by a 32.110 mhz crystal (alrclk = 1); notes 5 and 6 itrdy j14 i target ready input for ipd output bus xtri k1 i control signal for all x port pins xpd7 k2 i/o msb of xpd bus xpd6 k3 i/o msb - 1 of xpd bus v ssid k4 s digital ground core (decoder) v ssid k11 s digital ground core (decoder) amclk k12 o audio master clock output, must be less than 50 % of crystal clock rts0 k13 o real-time status or sync information line 0 asclk k14 o audio serial clock output xpd5 l1 i/o msb - 2 of xpd bus xpd4 l2 i/o msb - 3 of xpd bus xpd3 l3 i/o msb - 4 of xpd bus v ddid l4 s 3.3 v digital supply voltage for core (decoder) xrv l5 i/o vertical reference for xpd bus symbol pin type (1) description
2004 jun 29 12 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae v ssed l6 s digital ground for peripheral cells (decoder) v dded l7 s 3.3 v digital supply voltage for peripheral cells (decoder) v ddxd l8 s 3.3 v supply voltage for oscillator (decoder) v dded l9 s 3.3 v digital supply voltage for peripheral cells (decoder) rts1 l10 o real-time status or sync information line 1 v ddid l11 s 3.3 v digital supply voltage for core (decoder) sdad l12 i/o i 2 c-bus serial data input/output (decoder) rtco l13 (i/)o real-time control output; contains information about actual system clock frequency, ?eld rate, odd/even sequence, decoder status, subcarrier frequency and phase and pal sequence (see external document rtc functional description , available on request); the rtco pin is enabled via i 2 c-bus bit rtce; see notes 5 and 7 and table 150 llc2 l14 o line-locked 1 2 clock output (13.5 mhz nominal) xpd2 m1 i/o msb - 5 of xpd bus xpd1 m2 i/o msb - 6 of xpd bus xclk m3 i/o clock for xpd bus xdq m4 i/o data quali?er for xpd bus tmsd m5 i/pu test mode select input for bst (decoder); note 4 tckd m6 i/pu test clock input for bst (decoder); note 4 v ssad m7 s analog ground (decoder) v ddad m8 s 3.3 v analog supply voltage (decoder) v ddad m9 s 3.3 v analog supply voltage (decoder) aout m10 o analog test output (do not connect) scld m11 i i 2 c-bus serial clock input (decoder) resd m12 o reset output signal; active low (decoder) v ssed m13 s digital ground for peripheral cells (decoder) llc m14 o line-locked clock output (27 mhz nominal) xpd0 n1 i/o msb - 7 of xpd bus xrh n2 i/o horizontal reference for xpd bus xrdy n3 o data input ready for xpd bus trstd n4 i/pu test reset input for bst (decoder); active low; with internal pull-up; notes 2 and 3 tdod n5 o test data output for bst (decoder); note 4 tdid n6 i/pu test data input for bst (decoder); note 4 v ssad n7 s analog ground (decoder) v ssad n8 s analog ground (decoder) v ssad n9 s analog ground (decoder) agnd n10 s analog ground (decoder) connected to substrate v ddad n11 s 3.3 v analog supply voltage (decoder) v ssad n12 s analog ground (decoder) v ssad n13 s analog ground (decoder) ce n14 i chip enable or reset input (with internal pull-up) symbol pin type (1) description
2004 jun 29 13 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae notes 1. pin type: i = input, o = output, s = supply, pu = pull-up. 2. for board design without boundary scan implementation connect trste and trstd to ground. 3. this pin provides easy initialization of the boundary scan test (bst) circuit. trste and trstd can be used to force the test access port (tap) controller to the test_logic_reset state (normal operation) at once. 4. in accordance with the ieee1149.1 standard the pads tdie (tdid), tmse (tmsd), tcke (tckd) and trste ( trstd) are input pads with an internal pull-up resistor and tdoe (tdod) is a 3-state output pad. 5. pin strapping is done by connecting the pin to supply via a 3.3 k w resistor. during the power-up reset sequence the corresponding pins are switched to input mode to read the strapping level. for the default setting no strapping resistor is necessary (internal pull-down). 6. pin alrclk: 0 = 24.576 mhz crystal (default); 1 = 32.110 mhz crystal. 7. pin rtco: operates as i 2 c-bus slave address pin; rtco = 0 slave address 42h/43h (default); rtco = 1 slave address 40h/41h. xtalid p2 i 27 mhz crystal input (decoder) xtalod p3 o 27 mhz crystal output (decoder) xtoutd p4 o crystal oscillator output signal (decoder); auxiliary signal v ssxd p5 s ground for crystal oscillator (decoder) ai24 p6 i analog input 24 ai23 p7 i analog input 23 ai2d p8 i differential analog input for channel 2; connect to ground via a capacitor ai22 p9 i analog input 22 ai21 p10 i analog input 21 ai12 p11 i analog input 12 ai1d p12 i differential analog input for channel 1; connect to ground via a capacitor ai11 p13 i analog input 11 symbol pin type (1) description handbook, halfpage 1 a b c d e f g h j k l m n p 234567891011121314 mbl788 SAA7108AE saa7109ae fig.4 pin configuration.
2004 jun 29 14 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... table 1 pin assignment (top view) 123456 7 8 91011121314 a pd7 pd4 trst e xtalie xtaloe dump v ssxe rset v ddae hpd0 hpd3 hpd7 b pd9 pd8 pd5 pd6 tdie v ddae dump v ssae v ddae test1 hpd1 hpd4 ipd0 ipd4 c pd11 pd10 ttx_ sres ttxrq_ xclko2 v ssie blue_ cb_cvbs green_ vbs_cvbs red_cr_c_ cvbs v ddae test2 hpd2 hpd5 ipd1 ipd5 d tdoe rese tmse v ddiee v ssie v ddxe vsm hsm_csync v ddae v dded v ddid hpd6 ipd2 ipd6 e tcke scle hsvgc v ssee v ssid n.c. ipd3 ipd7 f vsvgc pixclki pd3 v dd(dvo) v ddid tvd igpv igp0 g fsvgc sdae cbo pixclko v dded igph igp1 itri h pd2 pd1 pd0 v ssed v ssed iclk test0 idq j test4 test5 test3 v ddid v ddid amxclk alrclk itrdy k xtri xpd7 xpd6 v ssid v ssid amclk rts0 asclk l xpd5 xpd4 xpd3 v ddid xrv v ssed v dded v ddxd v dded rts1 v ddid sdad rtco llc2 m xpd2 xpd1 xclk xdq tmsd tckd v ssad v ddad v ddad aout scld resd v ssed llc n xpd0 xrh xrdy trstd tdod tdid v ssad v ssad v ssad agnd v ddad v ssad v ssad ce p xtalid xtalod xtoutd v ssxd ai24 ai23 ai2d ai22 ai21 ai12 ai1d ai11
2004 jun 29 15 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 8 functional description of digital video encoder part the digital video encoder encodes digital luminance and colour difference signals (c b -y-c r ) or digital rgb signals into analog cvbs, s-video and, optionally, rgb or c r -y-c b signals. ntsc m, pal b/g and sub-standards are supported. the SAA7108AE; saa7109ae can be directly connected to a pc video graphics controller with a maximum resolution of 1280 1024 (progressive) or 1920 1080 (interlaced) at a 50 or 60 hz frame rate. a programmable scaler scales the computer graphics picture so that it will fit into a standard tv screen with an adjustable underscan area. non-interlaced-to-interlaced conversion is optimized with an adjustable anti-flicker filter for a flicker-free display at a very high sharpness. besides the most common 16-bit 4 :2:2 c b -y-c r input format (using 8 pins with double edge clocking), other c b -y-c r and rgb formats are also supported; see tables 9 to 15. a complete 3 256 bytes look-up table (lut), which can be used, for example, as a separate gamma corrector, is located in the rgb domain; it can be loaded either through the video input port pd (pixel data) or via the i 2 c-bus. the SAA7108AE; saa7109ae supports a 32 32 2-bit hardware cursor, the pattern of which can also be loaded through the video input port or via the i 2 c-bus. it is also possible to encode interlaced 4 :2:2 video signals such as pc-dvd; for that the anti-flicker filter, and in most cases the scaler, will simply be bypassed. besides the applications for video output, the SAA7108AE; saa7109ae can also be used for generating a kind of auxiliary vga output, when the rgb non-interlaced input signal is fed to the dacs. this may be of interest for example, when the graphics controller provides a second graphics window at its video output port. the basic encoder function consists of subcarrier generation, colour modulation and insertion of synchronization signals at a crystal-stable clock rate of 13.5 mhz (independent of the actual pixel clock used at the input side), corresponding to an internal 4 :2:2 bandwidth in the luminance/colour difference domain. luminance and chrominance signals are filtered in accordance with the standard requirements of rs-170-a and itu-r bt.470-3 . for ease of analog post filtering the signals are twice oversampled to 27 mhz before digital-to-analog conversion. the total filter transfer characteristics (scaler and anti-flicker filter are not taken into account) are illustrated in figs 5 to 10. all three dacs are realized with full 10-bit resolution. the c r -y-c b to rgb dematrix can be bypassed (optionally) in order to provide the upsampled c r -y-c b input signals. the 8-bit multiplexed c b -y-c r formats are itu-r bt.656 (d1 format) compatible, but the sav and eav codes can be decoded optionally, when the device is operated in slave mode. for assignment of the input data to the rising or falling clock edge see tables 9 to 15. in order to display interlaced rgb signals through a euro-connector tv set, a separate digital composite sync signal (pin hsm_csync) can be generated; it can be advanced up to 31 periods of the 27 mhz crystal clock in order to be adapted to the rgb processing of a tv set. the SAA7108AE; saa7109ae synthesizes all necessary internal signals, colour subcarrier frequency and synchronization signals from that clock. it is also possible to connect pin rtco of the decoder section to pin rtci of the encoder section. thus, information containing actual subcarrier frequency, pal-id etc. is available in case the line-locked clock of the decoder section is used for re-encoding of the encoder section. wide screen signalling data can be loaded via the i 2 c-bus and is inserted into line 23 for standards using a 50 hz field rate. vps data for program dependent automatic start and stop of such featured vcrs is loadable via the i 2 c-bus. the ic also contains closed caption and extended data services encoding (line 21), and supports teletext insertion for the appropriate bit stream format at a 27 mhz clock rate (see fig.51). it is also possible to load data for the copy generation management system into line 20 of every field (525/60 line counting). a number of possibilities are provided for setting different video parameters such as: black and blanking level control colour subcarrier frequency variable burst amplitude etc.
2004 jun 29 16 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth 6 8 10 12 14 6 0 024 mbe737 - 6 - 12 - 18 - 30 - 24 - 36 - 42 - 54 - 48 f (mhz) g v (db) (1) (2) fig.5 chrominance transfer characteristic 1. (1) scbw = 1. (2) scbw = 0. handbook, halfpage 0 0.4 0.8 1.6 2 0 - 4 - 6 - 2 mbe735 1.2 f (mhz) g v (db) (1) (2) fig.6 chrominance transfer characteristic 2. (1) scbw = 1. (2) scbw = 0.
2004 jun 29 17 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth 6 (1) (2) (4) (3) 8101214 6 0 024 mgd672 - 6 - 12 - 18 - 30 - 24 - 36 - 42 - 54 - 48 f (mhz) g v (db) fig.7 luminance transfer characteristic 1 (excluding scaler). (1) ccrs1 = 0; ccrs0 = 1. (2) ccrs1 = 1; ccrs0 = 0. (3) ccrs1 = 1; ccrs0 = 1. (4) ccrs1 = 0; ccrs0 = 0. handbook, halfpage 02 (1) 6 1 0 - 1 - 2 - 3 - 4 - 5 mbe736 4 f (mhz) g v (db) fig.8 luminance transfer characteristic 2 (excluding scaler). (1) ccrs1 = 0; ccrs0 = 0.
2004 jun 29 18 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth 6 8 10 12 14 6 0 024 mgb708 - 6 - 12 - 18 - 30 - 24 - 36 - 42 - 54 - 48 f (mhz) g v (db) fig.9 luminance transfer characteristic in rgb (excluding scaler). handbook, full pagewidth 6 8 10 12 14 6 0 024 mgb706 - 6 - 12 - 18 - 30 - 24 - 36 - 42 - 54 - 48 f (mhz) g v (db) fig.10 colour difference transfer characteristic in rgb (excluding scaler).
2004 jun 29 19 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 8.1 reset conditions to activate the reset a pulse at least of 2 crystal clocks duration is required. during reset ( reset = low) plus an extra 32 crystal clock periods, fsvgc, vsvgc, cbo, hsvgc and ttx_sres are set to input mode and hsm_csync and vsm are set to 3-state. a reset also forces the i 2 c-bus interface to abort any running bus transfer and sets it into receive condition. after reset, the state of the i/os and other functions is defined by the strapping pins until an i 2 c-bus access redefines the corresponding registers; see table 2. table 2 strapping pins 8.2 input formatter the input formatter converts all accepted pd input data formats, either rgb or y-c b -c r , to a common internal rgb or y-c b -c r data stream. when double-edge clocking is used, the data is internally split into portions ppd1 and ppd2. the clock edge assignment must be set according to the i 2 c-bus control bits slot and edge for correct operation. if y-c b -c r is being applied as a 27 mbyte/s data stream, the output of the input formatter can be used directly to feed the video encoder block. the horizontal upscaling is supported via the input formatter. according to the programming of the pixel clock dividers (see section 8.10), it will upsample the data stream to 1 , 2 or 4 the input data rate. an optional interpolation filter is available. the clock domain transition is handled by a 4 entries wide fifo which gets initialized every field or explicitly at request. a bypass for the fifo is available, especially for high input data rates. 8.3 rgb lut the three 256-byte rams of this block can be addressed by three 8-bit wide signals, thus it can be used to build any transformation, e.g. a gamma correction for rgb signals. in the event that the indexed colour data is applied, the rams are addressed in parallel. the luts can either be loaded by an i 2 c-bus write access or can be part of the pixel data input through the pd port. in the latter case, 256 3 bytes for the r, g and b lut are expected at the beginning of the input video line, two lines before the line that has been defined as first active line, until the middle of the line immediately preceding the first active line. the first 3 bytes represent the first rgb lut data, and so on. 8.4 cursor insertion a32 32 dots cursor can be overlaid as an option; the bit map of the cursor can be uploaded by an i 2 c-bus write access to specific registers or in the pixel data input via the pd port. in the latter case the 256 bytes defining the cursor bit map (2 bits per pixel) are expected immediately following the last rgb lut data in the line preceding the first active line. the cursor bit map is set up as follows: each pixel occupies 2 bits. the meaning of these bits depends on the cmode i 2 c-bus register as described in table 5. transparent means that the input pixels are passed through, the cursor colours can be programmed in separate registers. the bit map is stored with 4 pixels per byte, aligned to the least significant bit. so the first pixel is in bits 0 and 1, the next pixel in bits 3 and 4 and so on. the first index is the column, followed by the row; index 0,0 is the upper left corner. pin tied preset fsvgc (pin g1) low ntsc m encoding, pixclk ?ts to 640 480 graphics input high pal b/g encoding, pixclk ?ts to 640 480 graphics input vsvgc (pin f1) low 4:2:2 y-c b -c r graphics input (format 0) high 4:4:4 rgb graphics input (format 3) cbo (pin g3) low input demultiplex phase: lsb=low high input demultiplex phase: lsb = high hsvgc (pin e3) low input demultiplex phase: msb = low high input demultiplex phase: msb = high ttxrq_xclko2 (pin c4) low slave (fsvgc, vsvgc and hsvgc are inputs, internal colour bar is active) high master (fsvgc, vsvgc and hsvgc are outputs)
2004 jun 29 20 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 3 layout of a byte in the cursor bit map for each direction, there are 2 registers controlling the position of the cursor, one controls the position of the hot spot, the other register controls the insertion position. the hot spot is the tip of the pointer arrow. it can have any position in the bit map. the actual position registers describe the co-ordinates of the hot spot. again 0,0 is the upper left corner. while it is not possible to move the hot spot beyond the left respectively upper screen border this is perfectly legal for the right respectively lower border. it should be noted that the cursor position is described relative to the input resolution. table 4 cursor bit map table 5 cursor modes 8.5 rgb y-c b -c r matrix rgb input signals to be encoded to pal or ntsc are converted to the y-c b -c r colour space in this block. the colour difference signals are fed through low-pass filters and formatted to a itu-r bt.601 like 4 : 2 : 2 data stream for further processing. a gain adjust option corrects the level swing of the graphics world (black-to-white as 0 to 255) to the required range of 16 to 235. the matrix and formatting blocks can be bypassed for y-c b -c r graphics input. when the auxiliary vga mode is selected, the output of the cursor insertion block is immediately directed to the triple dac. 8.6 horizontal scaler the high quality horizontal scaler operates on the 4 : 2 : 2 data stream. its control engines compensate the colour phase offset automatically. the scaler starts processing after a programmable horizontal offset and continues with a number of input pixels. each input pixel is a programmable fraction of the current output pixel (xinc/4096). a special case is xinc = 0, this sets the scaling factor to 1. if the SAA7108AE; saa7109ae input data is in accordance with itu-r bt.656 , the scaler enters another mode. in this event, xinc needs to be set to 2048 for a scaling factor of 1. with higher values, upscaling will occur. the phase resolution of the circuit is 12 bits, giving a maximum offset of 0.2 after 800 input pixels. small fifos rearrange a 4 : 2 : 2 data stream at the scaler output. d7 d6 d5 d4 d3 d2 d1 d0 pixel n + 3 pixel n + 2 pixel n + 1 pixel n d1 d0 d1 d0 d1 d0 d1 d0 byte d7 d6 d5 d4 d3 d2 d1 d0 0row0 column 3 row 0 column 2 row 0 column 1 row 0 column 0 1row0 column 7 row 0 column 6 row 0 column 5 row 0 column 4 2row0 column 11 row 0 column 10 row 0 column 9 row 0 column 8 ... ... ... ... ... 6row0 column 27 row 0 column 26 row 0 column 25 row 0 column 24 7row0 column 31 row 0 column 30 row 0 column 29 row 0 column 28 ... ... ... ... ... 254 row 31 column 27 row 31 column 26 row 31 column 25 row 31 column 24 255 row 31 column 31 row 31 column 30 row 31 column 29 row 31 column 28 cursor pattern cursor mode cmode = 0 cmode = 1 00 second cursor colour second cursor colour 01 ?rst cursor colour ?rst cursor colour 10 transparent transparent 11 inverted input auxiliary cursor colour
2004 jun 29 21 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 8.7 vertical scaler and anti-?icker ?lter the functions scaling, anti-flicker filter (aff) and re-interlacing are implemented in the vertical scaler. besides the entire input frame, it receives the first and last lines of the border to allow anti-flicker filtering. the circuit generates the interlaced output fields by scaling down the input frames with different offsets for odd and even fields. increasing the yskip setting reduces the anti-flicker function. a yskip value of 4095 switches it off; see table 120. an additional, programmable vertical filter supports the anti-flicker function. this filter is not available at upscaling factors of more than 2. the programming is similar to the horizontal scaler. for the re-interlacing, the resolutions of the offset registers are not sufficient, so the weighting factors for the first lines can also be adjusted. yinc = 0 sets the scaling factor to 1; yiwgto and yiwgte must not be 0. due to the re-interlacing, the circuit can perform upscaling by a maximum factor of 2. the maximum factor depends on the setting of the anti-flicker function and can be derived from the formulae given in section 8.20. an additional upscaling mode enables the upscaling factor to be increased to a maximum of 4 as it is required for the old vga modes like 320 240. 8.8 fifo the fifo acts as a buffer to translate from the pixclk clock domain to the xtal clock domain. the write clock is pixclk and the read clock is xtal. an underflow or overflow condition can be detected via the i 2 c-bus read access. in order to avoid underflows and overflows, it is essential that the frequency of the synthesized pixclk matches to the input graphics resolution and the desired scaling factor. 8.9 border generator when the graphics picture is to be displayed as interlaced pal, ntsc, s-video or rgb on a tv screen, it is desired in many cases not to lose picture information due to the inherent overscanning of a tv set. the desired amount of underscan area, which is achieved through appropriate scaling in the vertical and horizontal direction, can be filled in the border generator with an arbitrary true colour tint. 8.10 oscillator and discrete time oscillator (dto) the master clock generation is realized as a 27 mhz crystal oscillator, which can operate with either a fundamental wave crystal or a 3rd-harmonic crystal. the crystal clock supplies the dto of the pixel clock synthesizer, the video encoder and the i 2 c-bus control block. it also usually supplies the triple dac, with the exception of the auxiliary vga mode, where the triple dac is clocked by the pixel clock (pixclk). the dto can be programmed to synthesize all relevant pixel clock frequencies between circa 40 and 85 mhz. two programmable dividers provide the actual clock to be used externally and internally. the dividers can be programmed to factors of 1, 2, 4 and 8. for the internal pixel clock, a divider ratio of 8 makes no sense and is thus forbidden. the internal clock can be switched completely to the pixel clock input. in this event, the input fifo is useless and will be bypassed. the entire pixel clock generation can be locked to the vertical frequency. both pixel clock dividers get re-initialized every field. optionally, the dto can be cleared with each v-sync. at proper programming, this will make the pixel clock frequency a precise multiple of the vertical and horizontal frequencies. this is required for some graphic controllers. 8.11 low-pass clock generation circuit (cgc) this block reduces the phase jitter of the synthesized pixel clock. it works as a tracking filter for all relevant synthesized pixel clock frequencies. 8.12 encoder 8.12.1 v ideo path the encoder generates luminance and colour subcarrier output signals from the y, c b and c r baseband signals, which are suitable for use as cvbs or separate y and c signals. input to the encoder, at 27 mhz clock (e.g. dvd), is either originated from computer graphics at pixel clock, fed through the fifo and border generator, or a itu-r bt.656 style signal. luminance is modified in gain and in offset (the offset is programmable in a certain range to enable different black level set-ups). a blanking level can be set after insertion of a fixed synchronization pulse tip level, in accordance with standard composite synchronization schemes.
2004 jun 29 22 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae other manipulations used for the macrovision anti-taping process, such as additional insertion of agc super-white pulses (programmable in height), are supported by the SAA7108AE only. to enable easy analog post filtering, luminance is interpolated from a 13.5 mhz data rate to a 27 mhz data rate, thereby providing luminance in a 10-bit resolution. the transfer characteristics of the luminance interpolation filter are illustrated in figs 7 and 8. appropriate transients at start/end of active video and for synchronization pulses are ensured. chrominance is modified in gain (programmable separately for c b and c r ), and a standard dependent burst is inserted, before baseband colour signals are interpolated from a 6.75 mhz data rate to a 27 mhz data rate. one of the interpolation stages can be bypassed, thus providing a higher colour bandwidth, which can be used for the y and c output. the transfer characteristics of the chrominance interpolation filter are illustrated in figs 5 and 6. the amplitude (beginning and ending) of the inserted burst, is programmable in a certain range that is suitable for standard signals and for special effects. after the succeeding quadrature modulator, colour is provided on the subcarrier in 10-bit resolution. the numeric ratio between the y and c outputs is in accordance with the standards. 8.12.2 t eletext insertion and encoding ( not simultaneously with real - time control ) pin ttx_sres receives a wst or nabts teletext bitstream sampled at the crystal clock. at each rising edge of the output signal (ttxrq) a single teletext bit has to be provided after a programmable delay at input pin ttx_sres. phase variant interpolation is achieved on this bitstream in the internal teletext encoder, providing sufficient small phase jitter on the output text lines. ttxrq_xclko2 provides a fully programmable request signal to the teletext source, indicating the insertion period of bitstream at lines which can be selected independently for both fields. the internal insertion window for text is set to 360 (pal wst), 296 (ntsc wst) or 288 (nabts) teletext bits including clock run-in bits. the protocol and timing are illustrated in fig.51. alternatively, this pin can be provided with a buffered crystal clock (xclk) of 13.5 mhz. 8.12.3 v ideo p rogramming s ystem (vps) encoding five bytes of vps information can be loaded via the i 2 c-bus and will be encoded in the appropriate format into line 16. 8.12.4 c losed c aption encoder using this circuit, data in accordance with the specification of closed caption or extended data service, delivered by the control interface, can be encoded (line 21). two dedicated pairs of bytes (two bytes per field), each pair preceded by run-in clocks and framing code, are possible. the actual line number in which data is to be encoded, can be modified in a certain range. the data clock frequency is in accordance with the definition for ntsc m standard 32 times horizontal line frequency. data low at the output of the dacs corresponds to 0 ire, data high at the output of the dacs corresponds to approximately 50 ire. it is also possible to encode closed caption data for 50 hz field frequencies at 32 times the horizontal line frequency. 8.12.5 a nti - taping (SAA7108AE only ) for more information contact your nearest philips semiconductors sales office. 8.13 rgb processor this block contains a dematrix in order to produce red, green and blue signals to be fed to a scart plug. before y, c b and c r signals are de-matrixed, individual gain adjustment for y and colour difference signals and 2 times oversampling for luminance and 4 times oversampling for colour difference signals is performed. the transfer curves of luminance and colour difference components of rgb are illustrated in figs 9 and 10. 8.14 triple dac both y and c signals are converted from digital-to-analog in a 10-bit resolution at the output of the video encoder. y and c signals are also combined into a 10-bit cvbs signal. the cvbs output signal occurs with the same processing delay as the y, c and optional rgb or c r -y-c b outputs. absolute amplitude at the input of the dac for cvbs is reduced by 15 16 with respect to y and c dacs to make maximum use of the conversion ranges.
2004 jun 29 23 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae red, green and blue signals are also converted from digital-to-analog, each providing a 10-bit resolution. the reference currents of all three dacs can be adjusted individually in order to adapt for different output signals. in addition, all reference currents can be adjusted commonly to compensate for small tolerances of the on-chip band gap reference voltage. alternatively, all currents can be switched off to reduce power dissipation. all three outputs can be used to sense for an external load (usually 75 w ) during a pre-defined output. a flag in the i 2 c-bus status byte reflects whether a load is applied or not. an automatic sense mode can also be activated, which will immediately indicate any 75 w load at any of the three outputs at the dedicated interrupt pin tvd. if the SAA7108AE; saa7109ae is required to drive a second (auxiliary) vga monitor or an hdtv set, the dacs receive the signal coming from the hd data path. in this event, the dacs are clocked at the incoming pixclki instead of the 27 mhz crystal clock used in the video encoder. 8.15 hd data path this data path enables the SAA7108AE; saa7109ae to be used with vga or hdtv monitors. it receives its data directly from the cursor generator and supports rgb and y-p b -p r output formats (rgb not with y-p b -p r input formats). no scaling is done in this mode. a gain adjustment either leads the full level swing to the digital-to-analog converters or reduces the amplitude by a factor of 0.69. this enables sync pulses to be added to the signal as it is required for display units that require signals with sync pulses, either regular or 3-level syncs. 8.16 timing generator the synchronization of the SAA7108AE; saa7109ae is able to operate in two modes; slave mode and master mode. in slave mode, the circuit accepts sync pulses on the bidirectional fsvgc (frame sync), vsvgc (vertical sync) and hsvgc (horizontal sync) pins: the polarities of the signals can be programmed. the frame sync signal is only necessary when the input signal is interlaced, in other cases it may be omitted. if the frame sync signal is present, it is possible to derive the vertical and the horizontal phase from it by setting the hfs and vfs bits. hsvgc and vsvgc are not necessary in this case, so it is possible to switch the pins to output mode. alternatively, the device can be triggered by auxiliary codes in a itu-r bt.656 data stream via pd7 to pd0. only vertical frequencies of 50 and 60 hz are allowed with the SAA7108AE; saa7109ae. in slave mode, it is not possible to lock the encoders colour carrier to the line frequency with the phres bits. in the (more common) master mode, the time base of the circuit is continuously free-running. the ic can output a frame sync at pin fsvgc, a vertical sync at pin vsvgc, a horizontal sync at pin hsvgc and a composite blanking signal at pin cbo. all of these signals are defined in the pixclk domain. the duration of hsvgc and vsvgc are fixed, they are 64 clocks for hsvgc and 1 line for vsvgc. the leading slopes are in phase and the polarities can be programmed. the input line length can be programmed. the field length is always derived from the field length of the encoder and the pixel clock frequency that is being used. cbo acts as a data request signal. the circuit accepts input data at a programmable number of clocks after cbo goes active. this signal is programmable and it is possible to adjust the following (see figs 49 and 50): the horizontal offset the length of the active part of the line the distance from active start to first expected data the vertical offset separately for odd and even fields the number of lines per input field. in most cases, the vertical offsets for odd and even fields are equal. if they are not, then the even field will start later. the SAA7108AE; saa7109ae will also request the first input lines in the even field, the total number of requested lines will increase by the difference of the offsets. as stated above, the circuit can be programmed to accept the look-up and cursor data in the first 2 lines of each field. the timing generator provides normal data request pulses for these lines; the duration is the same as for regular lines. the additional request pulses will be suppressed with lutl set to logic 0; see table 143. the other vertical timings do not change in this case, so the first active line can be number 2, counted from 0.
2004 jun 29 24 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 8.17 pattern generator for hd sync pulses the pattern generator provides an appropriate synchronization pattern for the video data path in auxiliary monitor or hdtv mode, respectively. it provides maximum flexibility in terms of raster generation for all interlaced and non-interlaced computer graphics or atsc formats. the sync engine is capable of providing a combination of event-value pairs which can be used to insert certain values at specified times in the outgoing data stream. it can also be used to generate digital signals associated with time events. they can be used as digital horizontal and vertical synchronization signals on pins hsm_csync and vsm. the picture position is adjustable through the programmable relationship between the sync pulses and the video contents. the generation of embedded analog sync pulses is bound to a number of events which can be defined for a line. several of these line timing definitions can exist in parallel. for the final sync raster composition a certain sequence of lines with different sync event properties has to be defined. the sequence specifies a series of line types and the number of occurrences of this specific line type. after the sequence has been completed, it restarts from the beginning. all pulse shapes are filtered internally in order to avoid ringing after analog post filters. the sequence of the generated pulse stream must fit precisely to the incoming data stream in terms of the total number of pixels per line and lines per frame. the sync engines flexibility is achieved by using a sequence of linked lists carrying the properties for the image, the lines as well as fractions of lines. figure 11 illustrates the context between the various tables. the first table serves as an array to hold the correct sequence of lines composing the synchronization raster. it can contain up to 16 entries. each entry holds a 4-bit index to the next table and a 10-bit counter value which specifies how often this particular line is invoked. if the necessary line count for a particular line exceeds the 10 bits, it has to use two table entries. the 4-bit index in the line count array points to the line type array. it holds up to 15 entries where, index 0 is not used, index 1 points to the first entry, index 2 to the second entry of the line type array etc. each entry of the line type array can hold up to 8 index pointers to another table. these indices point to portions of a line pulse pattern: a line could be split up e.g. into a sync, a blank, and an active portion followed by another blank portion, occupying four entries in one table line. each index of this table points to a particular line of the next table in the linked list. this table is called the line pattern array and each of the up to seven entries stores up to four pairs of a duration in pixel clock cycles and an index to a value table. the table entries are used to define portions of a line representing a certain value for a certain number of clock cycles. the value specified in this table is actually another 3-bit index into a value array which can hold up to eight 8-bit values. if bit 4 (msb) of the index is logic 1, the value is inserted into the g or y signal only; if bi t 4 = 0, the associated value is inserted into all three signals. two additional bits of the entries in the value array (lsbs of the second byte) determine if the associated events appear as a digital pulse on the hsm_csync and/or vsm outputs. to ease the trigger set-up for the sync generation module, a set of registers is provided to set up the screen raster defined as width and height. a trigger position can be specified as an x, y co-ordinate within the overall dimensions of the screen raster. if the x, y counter matches the specified co-ordinates, a trigger pulse is generated which pre-loads the tables with their initial values. table 6 outlines an example on how to set up the sync tables for a 1080i hd raster. important note: due to a problem in the programming interface, writing to the line pattern array (address d2) might destroy the data of the line type array (address d1). a work around is to write the line pattern array data before writing the line type array. reading of the arrays is possible but all address pointers must be initialized before the next write operation.
2004 jun 29 25 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth mbl797 4-bit line type index 10-bit duration 4-bit value index 10-bit duration 4-bit value index 10-bit duration 4-bit value index 10-bit duration 4-bit value index 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 10-bit line count line count array 16 entries line type array 15 entries 8 + 2-bit value line pattern array 7 entries line count pointer event type pointer line pattern pointer pattern pointer line type pointer value array 8 entries fig.11 context between the pattern generator tables for dh sync pulses.
2004 jun 29 26 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 6 example for set-up of the sync tables sequence comment write to subaddress d0h 00 points to ?rst entry of line count array (index 0) 05 20 generate 5 lines of line type index 2 (remember, it is the second entry of the line type array); will be the ?rst vertical raster pulse 01 40 generate 1 line of line type index 4; will be sync-black-sync-black sequence after the ?rst vertical pulse 0e 60 generate 14 lines of line type index 6; will be the following lines with sync-black sequence 1c 12 generate 540 lines of line type index 1; will be lines with sync and active video 02 60 generate 2 lines of line type index 6; will be the following lines with sync-black sequence 01 50 generate 1 line of line type index 5; will be the following line (line 563) with sync-black-sync-black-null sequence (null is equivalent to sync tip) 04 20 generate 4 lines of line type index 2; will be the second vertical raster pulse 01 30 generate 1 line of line type index 3; will be the following line with sync-null-sync-black sequence 0f 60 generate 15 lines of line type index 6; will be the following lines with sync-black sequence 1c 12 generate 540 lines of line type index 1; will be lines with sync and active video 02 60 generate 2 lines of line type index 6; will be the following lines with sync-black sequence; now, 1125 lines are de?ned write to subaddress d2h (insertion is done into all three analog output signals) 00 points to ?rst entry of line pattern array (index 1) 6f 33 2b 30 00 00 00 00 880 value(3) + 44 value(3); (subtract 1 from real duration) 6f 43 2b 30 00 00 00 00 880 value(4) + 44 value(3) 3b 30 bf 03 bf 03 2b 30 60 value(3) + 960 value(0) + 960 value(0) + 44 value(3) 2b 10 2b 20 57 30 00 00 44 value(1) + 44 value(2) + 88 value(3) 3b 30 bf 33 bf 33 2b 30 60 value(3) + 960 value(3) + 960 value(3) + 44 value(3) write to subaddress d1h 00 points to ?rst entry of line type array (index 1) 34 00 00 00 use pattern entries 4 and 3 in this sequence (for sync and active video) 24 24 00 00 use pattern entries 4, 2, 4 and 2 in this sequence (for 2 sync-black-null-black) 24 14 00 00 use pattern entries 4, 2, 4 and 1 in this sequence (for sync-black-null-black-null) 14 14 00 00 use pattern entries 4, 1, 4 and 1 in this sequence (for sync-black-sync-black) 14 24 00 00 use pattern entries 4, 1, 4 and 2 in this sequence (for sync-black-sync-black-null) 54 00 00 00 use pattern entries 4 and 5 in this sequence (for sync-black)
2004 jun 29 27 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae write to subaddress d3h (no signals are directed to pins hsm_csync and vsm) 00 points to ?rst entry of value array (index 0) cc 00 black level, to be added during active video 80 00 sync level low (minimum output voltage) 0a 00 sync level high (3-level sync) cc 00 black level (needed elsewhere) 80 00 null (identical with sync level low) write to subaddress dch 0b insertion is active, gain for signal is adapted accordingly sequence comment 8.18 i 2 c-bus interface the i 2 c-bus interface is a standard slave transceiver, supporting 7-bit slave addresses and 400 kbits/s guaranteed transfer rate. it uses 8-bit subaddressing with an auto-increment function. all registers are read and write, except two read only status bytes. the register bit map consists of an rgb look-up table (lut), a cursor bit map and control registers. the lut contains three banks of 256 bytes, where each rgb triplet is assigned to one address. thus a write access needs the lut address and three data bytes following subaddress ffh. for further write access auto-incrementing of the lut address is performed. the cursor bit map access is similar to the lut access but contains only a single byte per address. the i 2 c-bus slave address is defined as 88h. 8.19 power-down modes in order to reduce the power consumption, the SAA7108AE; saa7109ae supports 2 power-down modes, accessible via the i 2 c-bus. the analog power-down mode (downa = 1) turns off the digital-to-analog converters and the pixel clock synthesizer. the digital down mode turns off all internal clocks and sets the digital outputs to low except the i 2 c-bus interface. the ic retains its programming and can still be accessed in this mode, but not all registers can be read from or written to. reading or writing to the look-up tables, the cursor and the hd sync generator require a valid pixel clock. the typical supply current in full power-down is approximately 5 ma. due to the fact that the analog power-down mode turns off the pixel clock synthesizer, there are limitations in some applications. if there is no pixel clock, the ic is not able to set its outputs to low. so in most cases, downa and downd should be set to logic 1 simultaneously. if the eidiv bit is logic 1, it should be set to logic 0 before power-down. 8.20 programming the graphics acquisition scaler of the video encoder the encoder section needs to provide a continuous data stream at its analog outputs as well as receive a continuous stream from its data source. due to the fact that there is no frame memory isolating the data streams, restrictions apply to the input frame timings. input and output processing of the encoder section are only coupled through the vertical frequencies. in master mode, the encoder provides a vertical sync and an odd/even pulse to the input processing, in slave mode, the encoder receives them. the parameters of the input field are mainly given by the memory capacity of the encoder section. the rule is that the scaler and thus the input processing needs to provide the video data in the same time frames as the encoder reads them. so the vertical active video times (and the vertical frequencies) need to be the same. the second rule is that there has to be data in the buffer fifo when the encoder enters the active video area. so the vertical offset in the input path needs to be a bit shorter than the offset of the encoder. the following gives the set of equations required to program the ic for the most common application: a post processor in master mode with non-interlaced video input data.
2004 jun 29 28 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae some variables are defined below: inpix: the number of active pixels per input line inppl: the length of the entire input line in pixel clocks inlin: the number of active lines per input field/frame tpclk: the pixel clock period riepclk: the ratio of internal to external pixel clock outpix: the number of active pixels per output line outlin: the number of active lines per output field txclk: the encoder clock period (37.037 ns). 8.20.1 tv display window at 60 hz, the first visible pixel has the index 256, 710 pixels can be encoded; at 50 hz, the index is 284, 702 pixels can be visible. the output lines should be centred on the screen. it should be noted that the encoder has 2 clocks per pixel; see table 93. adwhs = 256 + 710 - outpix (60 hz); adwhs = 284 + 702 - outpix (50 hz); adwhe = adwhs + outpix 2 (all frequencies) for vertical, the procedure is the same. at 60 hz, the first line with video information is number 19, 240 lines can be active. for 50 hz, the numbers are 23 and 287; see table 99. (60 hz); (50 hz); lal = fal + outlin (all frequencies) most tv sets use overscan, and not all pixels respectively lines are visible. there is no standard for the factor, it is highly recommended to make the number of output pixels and lines adjustable. a reasonable underscan factor is 10 %, giving approximately 640 output pixels per line. 8.20.2 i nput frame and pixel clock the total number of pixel clocks per line and the input horizontal offset need to be chosen next. the only constraint is that the horizontal blanking has at least 10 clock pulses. the required pixel clock frequency can be determined in the following way: due to the limited internal fifo size, the input path has to provide all pixels in the same time frame as the encoders vertical active time. the scaler also has to process the first and last border lines for the anti-flicker function. thus: (60 hz) (50 hz) and for the pixel clock generator (all frequencies); see tables 102, 104 and 105. the divider pcle should be set according to table 104. pcli may be set to a lower or the same value. setting a lower value means that the internal pixel clock is higher and the data get sampled up. the difference may be 1 at 640 480 pixels resolution and 2 at resolutions with 320 pixels per line as a rule of thumb. this allows horizontal upscaling by a maximum factor of 2 respectively 4 (this is the parameter riepclk). (all frequencies) the equations ensure that the last line of the field has the full number of clock cycles. many graphic controllers require this. note that the bit pclsy needs to be set to ensure that there is not even a fraction of a clock left at the end of the field. 8.20.3 h orizontal scaler xofs can be chosen arbitrarily, the condition being that xofs + xpix hlen is fulfilled. values given by the vesa display timings are preferred. hlen = inppl riepclk - 1 xinc needs to be rounded up, it needs to be set to 0 for a scaling factor of 1. 8.20.4 v ertical scaler the input vertical offset can be taken from the assumption that the scaler should have just finished writing the first line when the encoder starts reading it: (60 hz) (50 hz) fal 19 240 outlin C 2 --------------------------------- + = fal 23 287 outlin C 2 --------------------------------- + = tpclk 262.5 1716 txclk inppl integer inlin 2 + outlin ---------------------- 262.5 ? ?? ---------------------------------------------------------------------------------------- = tpclk 312.5 1728 txclk inppl integer inlin 2 + outlin ---------------------- 312.5 ? ?? ---------------------------------------------------------------------------------------- = pcl txclk tpclk -------------- - 2 20 pcle + = pcli pcle riepclk log 2 log ---------------------------- C = xpix inpix 2 ------------ - riepclk = xinc outpix inpix ----------------- - 4096 riepclk ------------------- - = yofs fal 1716 txclk inppl tpclk --------------------------------------------------- - 2.5 C = yofs fal 1728 txclk inppl tpclk --------------------------------------------------- - 2.5 C =
2004 jun 29 29 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae in most cases the vertical offsets will be the same for odd and even fields. the results should be rounded down. ypix = inlin yskip defines the anti-flicker function. 0 means maximum flicker reduction but minimum vertical bandwidth, 4095 gives no flicker reduction and maximum bandwidth. note that the maximum value for yinc is 4095. it might be necessary to reduce the value of yskip to fulfil this requirement. when yinc = 0 it sets the scaler to scaling factor 1. the initial weighting factors must not be set to 0 in this case. yiwgte may go negative. in this event, yinc should be added and yofse incremented. this can be repeated as often as necessary to make yiwgte positive. note that these equations assume that the input is non-interlaced while the output is interlaced. if the input is interlaced, the initial weighting factors need to be adapted to get the proper phase offsets in the output frame. if vertical upscaling beyond the upper capabilities is required, the parameter yupsc may be set to 1. this extends the maximum vertical scaling factor by a factor 2. only the parameter yinc gets affected, it needs to be divided by 2 to get the same effect. there are restrictions in this mode: the vertical filter yfilt is not available in this mode; the circuit will ignore this value the horizontal blanking needs to be long enough to transfer an output line between 2 memory locations. this is 710 internal pixel clocks or the upscaling factor needs to be limited to 1.5 and the horizontal upscaling factor is also limited to less than ~ 1.5. in this case a normal blanking length is sufficient. 8.21 input levels and formats the SAA7108AE; saa7109ae accepts digital y, c b ,c r or rgb data with levels (digital codes) in accordance with itu-r bt.601 . an optional gain adjustment also allows data to be accepted with the full level swing of 0 to 255. for c and cvbs outputs, deviating amplitudes of the colour difference signals can be compensated for by independent gain control setting, while gain for luminance is set to predefined values, distinguishable for 7.5 ire set-up or without set-up. the rgb, respectively c r -y-c b path features an individual gain setting for luminance (gy) and colour difference signals (gcd). reference levels are measured with a colour bar, 100 % white, 100 % amplitude and 100 % saturation. the encoder section of the SAA7108AE; saa7109ae has special input cells for the vgc port. they operate at a wider supply voltage range and have a strict input threshold at 1 / 2 v dd(dvo) . to achieve full speed of these cells, the eidiv bit needs to be set to logic 1. in this case the impedance of these cells is approximately 6 k w . this may cause trouble with the bootstrapping pins of some graphic chips. so the power-on reset forces the bit to logic 0, the input impedance is regular in this mode. table 7 itu-r bt.601 signal component levels note 1. transformation: a) r = y + 1.3707 (c r - 128) b) g=y - 0.3365 (c b - 128) - 0.6982 (c r - 128) c) b = y + 1.7324 (c b - 128). yinc outlin inlin 2 + ---------------------- 1 yskip 4095 ----------------- + ? ?? 4096 = yiwgto yinc 2 ------------- - 2048 + = yiwgte yinc yskip C 2 ------------------------------------- - = colour signals (1) yc b c r rgb white 235 128 128 235 235 235 yellow 210 16 146 235 235 16 cyan 170 166 16 16 235 235 green 145 54 34 16 235 16 magenta 106 202 222 235 16 235 red 81 90 240 235 16 16 blue 41 240 110 16 16 235 black 16 128 128 16 16 16
2004 jun 29 30 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 8 usage of bits slot and edge table 9 pin assignment for input format 0 table 10 pin assignment for input format 1 table 11 pin assignment for input format 2 table 12 pin assignment for input format 3 data slot control (example for format 0) slot edge 1st data 2nd data 0 0 at rising edge g3/y3 at falling edge r7/c r 7 0 1 at falling edge g3/y3 at rising edge r7/c r 7 1 0 at rising edge r7/c r 7 at falling edge g3/y3 1 1 at falling edge r7/c r 7 at rising edge g3/y3 8 + 8 + 8-bit 4 : 4 : 4 non-interlaced rgb/c b -y-c r pin falling clock edge rising clock edge pd11 g3/y3 r7/c r 7 pd10 g2/y2 r6/c r 6 pd9 g1/y1 r5/c r 5 pd8 g0/y0 r4/c r 4 pd7 b7/c b 7 r3/c r 3 pd6 b6/c b 6 r2/c r 2 pd5 b5/c b 5 r1/c r 1 pd4 b4/c b 4 r0/c r 0 pd3 b3/c b 3 g7/y7 pd2 b2/c b 2 g6/y6 pd1 b1/c b 1 g5/y5 pd0 b0/c b 0 g4/y4 5 + 5 + 5-bit 4 : 4 : 4 non-interlaced rgb pin falling clock edge rising clock edge pd7 g2 x pd6 g1 r4 pd5 g0 r3 pd4 b4 r2 pd3 b3 r1 pd2 b2 r0 pd1 b1 g4 pd0 b0 g3 5 + 6 + 5-bit 4 : 4 : 4 non-interlaced rgb pin falling clock edge rising clock edge pd7 g2 r4 pd6 g1 r3 pd5 g0 r2 pd4 b4 r1 pd3 b3 r0 pd2 b2 g5 pd1 b1 g4 pd0 b0 g3 8 + 8 + 8-bit 4:2:2 non-interlaced c b -y-c r pin falling clock edge n rising clock edge n falling clock edge n+1 rising clock edge n+1 pd7 c b 7(0) y7(0) c r 7(0) y7(1) pd6 c b 6(0) y6(0) c r 6(0) y6(1) pd5 c b 5(0) y5(0) c r 5(0) y5(1) pd4 c b 4(0) y4(0) c r 4(0) y4(1) pd3 c b 3(0) y3(0) c r 3(0) y3(1) pd2 c b 2(0) y2(0) c r 2(0) y2(1) pd1 c b 1(0) y1(0) c r 1(0) y1(1) pd0 c b 0(0) y0(0) c r 0(0) y0(1)
2004 jun 29 31 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 13 pin assignment for input format 4 table 14 pin assignment for input format 5; note 1 note 1. x = dont care. table 15 pin assignment for input format 6 8 + 8 + 8-bit 4 : 2 : 2 interlaced c b -y-c r (itu-r bt.656, 27 mhz clock) pin rising clock edge n rising clock edge n+1 rising clock edge n+2 rising clock edge n+3 pd7 c b 7(0) y7(0) c r 7(0) y7(1) pd6 c b 6(0) y6(0) c r 6(0) y6(1) pd5 c b 5(0) y5(0) c r 5(0) y5(1) pd4 c b 4(0) y4(0) c r 4(0) y4(1) pd3 c b 3(0) y3(0) c r 3(0) y3(1) pd2 c b 2(0) y2(0) c r 2(0) y2(1) pd1 c b 1(0) y1(0) c r 1(0) y1(1) pd0 c b 0(0) y0(0) c r 0(0) y0(1) 8-bit non-interlaced index colour pin falling clock edge rising clock edge pd11 x x pd10 x x pd9 x x pd8 x x pd7 index7 x pd6 index6 x pd5 index5 x pd4 index4 x pd3 index3 x pd2 index2 x pd1 index1 x pd0 index0 x 8 + 8 + 8-bit 4 : 4 : 4 non-interlaced rgb/c b -y-c r pin falling clock edge rising clock edge pd11 g4/y4 r7/c r 7 pd10 g3/y3 r6/c r 6 pd9 g2/y2 r5/c r 5 pd8 b7/c b 7 r4/c r 4 pd7 b6/c b 6 r3/c r 3 pd6 b5/c b 5 g7/y7 pd5 b4/c b 4 g6/y6 pd4 b3/c b 3 g5/y5 pd3 g0/y0 r2/c r 2 pd2 b2/c b 2 r1/c r 1 pd1 b1/c b 1 r0/c r 0 pd0 b0/c b 0 g1/y1
2004 jun 29 32 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9 functional description of digital video decoder part 9.1 decoder 9.1.1 a nalog input processing the SAA7108AE; saa7109ae offers six analog signal inputs, two analog main channels with source switch, clamp circuit, analog amplifier, anti-alias filter and video 9-bit cmos adc; see fig.15. 9.1.2 a nalog control circuits the anti-alias filters are adapted to the line-locked clock frequency via a filter control circuit. the characteristics are illustrated in fig.12. during the vertical blanking period, gain and clamping control is frozen. 6 v (db) - 42 024 68101214 f (mhz) mgd138 - 6 - 12 - 18 - 24 - 30 - 36 0 fig.12 anti-alias filter.
2004 jun 29 33 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.1.2.1 clamping the clamping control circuit controls the correct clamping of the analog input signals. a coupling capacitor is used to store and filter the clamping voltage. an internal digital clamp comparator generates the information with respect to clamp-up or clamp-down. the clamping levels for the two adc channels are fixed for luminance (60) and chrominance (128). clamping time in normal use is set with the hcl pulse at the back porch of the video signal. 9.1.2.2 gain control the gain control circuit receives (via the i 2 c-bus) the static gain levels for the two analog amplifiers, or controls one of these amplifiers automatically via a built-in automatic gain control (agc) as part of the analog input control (aico). the agc (automatic gain control for luminance) is used to amplify a cvbs or y signal to the required signal amplitude, which is matched to the adcs input voltage range. the agc active time is the sync bottom of the video signal. signal (white) peak control limits the gain at signal overshoots. the influence of supply voltage variation within the specified range is automatically eliminated by clamping and automatic gain control. the flow charts show more details of the agc; see figs 16 and 17. hcl mgl065 hsy analog line blanking tv line 1 60 255 gain clamp fig.13 analog line with clamp (hcl) and gain range (hsy). analog input level controlled adc input level maximum minimum range 9 db 0 db 0 db mhb325 + 3 db - 6 db (1 v (p-p) 18/56 w ) fig.14 automatic gain range.
2004 jun 29 34 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... n dbook, full pagewidth holdg gafix wpoff gudl [ 1:0 ] gai [ 28:20 ] gai [ 18:10 ] hlnrs uptcv mode3 mode2 mode1 mode0 hsy hcl glimb glimt wipa sltca analog control vbsl source switch clamp circuit analog amplifier dac9 anti-alias filter bypass switch adc2 source switch clamp circuit analog amplifier dac9 anti-alias filter bypass switch adc1 vblnk svref cross multiplexer vertical blanking control clamp control gain control anti-alias control mode control fuse [ 1:0 ] fuse [ 1:0 ] aosl [ 1:0 ] cvbs/chr cvbs/lum 99 ad1byp ad2byp m10 aout p11 p12 p13 p6 ai24 ai12 p9 ai22 ai1d p10 ai21 ai11 test selector and buffer 9 9 9 9 p8 ai2d p7 ai23 mhb892 fig.15 analog input processing using the SAA7108AE; saa7109ae as differential front-end with 9-bit adc.
2004 jun 29 35 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae analog input amplifier anti-alias filter adc luma/chroma decoder x hsy > 254 > 254 < 1 < 4 > 248 x = 0 x = 1 - 1/llc2 + 1/llc2 - 1/llc2 + / - 0 + 1/f + 1/l gain accumulator (18 bits) actual gain value 9-bit (agv) [ - 3/ + 6 db ] x stop hsy y update fgv mhb531 agv gain value 9-bit 1 0 1 0 10 1 0 1 0 1 0 10 1 0 0 1 1 0 1 0 vblk 1 0 no action 9 9 dac gain holdg fig.16 gain flow chart. x = system variable. y = (iagv - fgvi) > gudl. vblk = vertical blanking pulse. hsy = horizontal sync pulse. agv = actual gain value. fgv = frozen gain value.
2004 jun 29 36 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 10 + clamp - clamp no clamp 10 10 01 10 mgc647 fast - gain slow + gain + gain - gain hcl hsy adc sbot wipe cll analog input gain -> <- clamp vblk no blanking active 10 fig.17 clamp and gain flow. wipe = white peak level (254). sbot = sync bottom level (1). cll = clamp level [60 y (128 c)]. hsy = horizontal sync pulse. hcl = horizontal clamp pulse.
2004 jun 29 37 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... 9.1.3 c hrominance and luminance processing handbook, full pagewidth mhb532 cvbs-in or chr-in code secs huec dcvf quadrature demodulator pal delay line secam recombination phase demodulator amplitude detector burst gate accumulator loop filter low-pass 1 downsampling subcarrier generation 2 fctc acgc cgain [ 6:0 ] idel [ 3:0 ] incs rtco uv- adjustment secam processing f h /2 switch signal adaptive comb filter ccomb ycomb ldel byps lufi [ 3:0 ] cstd [ 2:0 ] ydel [ 2:0 ] low-pass 2 chbw chroma gain control uv interpolation low-pass 3 lubw uv quadrature modulator cdto cstd [ 2:0 ] subcarrier generation 1 chrominance increment dto-reset subcarrier increment generation and divider chrominance increment delay ldel ycomb uv subtractor delay compensation cvbs-in or y-in chr luminance-peaking or low-pass, y-delay adjustment lcbw [ 2:0 ] y y/cvbs dbri [ 7:0 ] dcon [ 7:0 ] dsat [ 7:0 ] rawg [ 7:0 ] rawo [ 7:0 ] colo brightness contrast saturation control raw data gain and offset control ldel ycomb y-out/ cvbs-out uv-out href-out set_raw set_vbi set_raw set_vbi set_raw set_vbi set_raw set_vbi uv fig.18 chrominance and luminance processing.
2004 jun 29 38 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.1.3.1 chrominance path the 9-bit cvbs or chrominance input signal is fed to the input of a quadrature demodulator, where it is multiplied by two time-multiplexed subcarrier signals from the subcarrier generation block 1 (0 and 90 phase relationship to the demodulator axis). the frequency is dependent on the chosen colour standard. the time-multiplexed output signals of the multipliers are low-pass filtered (low-pass 1). eight characteristics are programmable via lcbw3 to lcbw0 to achieve the desired bandwidth for the colour difference signals (pal, ntsc) or the 0 and 90 fm signals (secam). the chrominance low-pass 1 characteristic also influences the grade of cross-luminance reduction during horizontal colour transients (large chrominance bandwidth means strong suppression of cross-luminance). if the y comb filter is disabled when ycomb = 0 the filter directly influences the width of the chrominance notch within the luminance path (large chrominance bandwidth means wide chrominance notch resulting to lower luminance bandwidth). the low-pass filtered signals are fed to the adaptive comb filter block. the chrominance components are separated from the luminance via a two-line vertical stage (four lines for pal standards) and a decision logic circuit between the filtered and the non-filtered output signals: this block is bypassed for secam signals. the comb filter logic can be enabled independently for the succeeding luminance and chrominance processing by ycomb (subaddress 09h, bit 6) and/or ccomb (subaddress 0eh, bit 0). it is always bypassed during vbi or raw data lines, programmable by the lcrn registers (subaddresses 41h to 57h); see section 9.2. the separated c b -c r components are further processed by a second filter stage (low-pass 2) to modify the chrominance bandwidth without influencing the luminance path. its characteristic is controlled by chbw (subaddress 10h, bit 3). for the complete transfer characteristic of low-pass filters 1 and 2 see figs 19 and 20. the secam processing (bypassed for qam standards) contains the following blocks: baseband bell filters to reconstruct the amplitude and phase equalized 0 and 90 fm signals phase demodulator and differentiator (fm demodulation) de-emphasis filter to compensate the pre-emphasized input signal, including frequency offset compensation (db or dr white carrier values are subtracted from the signal, controlled by the secam switch signal). the succeeding chrominance gain control block amplifies or attenuates the c b -c r signal according to the required itu 601/656 levels. it is controlled by the output signal from the amplitude detection circuit within the burst processing block. the burst processing block provides the feedback loop of the chrominance pll and contains the following: burst gate accumulator colour identification and killer comparison nominal/actual burst amplitude (pal/ntsc standards only) loop filter chrominance gain control (pal/ntsc standards only) loop filter chrominance pll (only active for pal/ntsc standards) pal/secam sequence detection, h/2-switch generation. the increment generation circuit produces the discrete time oscillator (dto) increment for both subcarrier generation blocks. it contains a division by the increment of the line-locked clock generator to create a stable phase-locked sine signal under all conditions (e.g. for non-standard signals). the pal delay line block eliminates crosstalk between the chrominance channels in accordance with the pal standard requirements. for ntsc colour standards, the delay line can be used as an additional vertical filter. if desired, it can be switched off by dcvf = 1. it is always disabled during vbi or raw data lines programmable by the lcrn registers (subaddresses 41h to 57h); see section 9.2. the embedded line delay is also used for secam recombination (cross-over switches).
2004 jun 29 39 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb533 - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 v (db) f (mhz) - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 v (db) 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 f (mhz) (1) (2) (3) (4) (5) (6) (7) (8) fig.19 transfer characteristics of the chrominance low-pass at chbw = 0. (1) lcbw[2:0] = 000. (2) lcbw[2:0] = 010. (3) lcbw[2:0] = 100. (4) lcbw[2:0] = 110. (5) lcbw[2:0] = 001. (6) lcbw[2:0] = 011. (7) lcbw[2:0] = 101. (8) lcbw[2:0] = 111.
2004 jun 29 40 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb534 - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 v (db) f (mhz) - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 v (db) 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 f (mhz) (1) (2) (3) (4) (5) (6) (7) (8) fig.20 transfer characteristics of the chrominance low-pass at chbw = 1. (1) lcbw[2:0] = 000. (2) lcbw[2:0] = 010. (3) lcbw[2:0] = 100. (4) lcbw[2:0] = 110. (5) lcbw[2:0] = 001. (6) lcbw[2:0] = 011. (7) lcbw[2:0] = 101. (8) lcbw[2:0] = 111.
2004 jun 29 41 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.1.3.2 luminance path the rejection of the chrominance components within the 9-bit cvbs or y input signal is done by subtracting the re-modulated chrominance signal from the cvbs input. the comb filtered c b -c r components are interpolated (upsampled) by the low-pass 3 block. its characteristic is controlled by lubw (subaddress 09h, bit 4) to modify the width of the chrominance notch without influencing the chrominance path. the programmable frequency characteristics available, in conjunction with the lcbw2 to lcbw0 settings, can be seen in figs 21 to 24. it should be noted that these frequency curves are only valid for y comb disabled filter mode (ycomb = 0). in comb filter mode the frequency response is flat. the centre frequency of the notch is automatically adapted to the chosen colour standard. the interpolated c b -c r samples are multiplied by two time-multiplexed subcarrier signals from the subcarrier generation block 2. this second dto is locked to the first subcarrier generator by an increment delay circuit matched to the processing delay, which is different for pal and ntsc standards according to the chosen comb filter algorithm. the two modulated signals are finally added to create the re-modulated chrominance signal. the frequency characteristic of the separated luminance signal can be further modified by the succeeding luminance filter block. it can be configured as peaking (resolution enhancement) or low-pass block by lufi3 to lufi0 (subaddress 09h, bits 3 to 0). the 16 resulting frequency characteristics can be seen in fig.25. the lufi3 to lufi0 settings can be used as a user programmable sharpness control. the luminance filter block also contains the adjustable y delay part; programmable by ydel2 to ydel0 (subaddress 11h, bits 2 to 0).
2004 jun 29 42 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb535 - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 v (db) f (mhz) - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 v (db) f (mhz) (5) (6) (7) (8) (1) (2) (3) (4) fig.21 transfer characteristics of the luminance notch filter in 3.58 mhz mode (y-comb filter disabled) at lubw = 0. (1) lcbw[2:0] = 000. (2) lcbw[2:0] = 010. (3) lcbw[2:0] = 100. (4) lcbw[2:0] = 110. (5) lcbw[2:0] = 001. (6) lcbw[2:0] = 011. (7) lcbw[2:0] = 101. (8) lcbw[2:0] = 111.
2004 jun 29 43 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb536 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 v (db) f (mhz) - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 v (db) f (mhz) (5) (6) (7) (8) (1) (2) (3) (4) fig.22 transfer characteristics of the luminance notch filter in 3.58 mhz mode (y-comb filter disabled) at lubw =1. (1) lcbw[2:0] = 000 (2) lcbw[2:0] = 010 (3) lcbw[2:0] = 100 (4) lcbw[2:0] = 110 (5) lcbw[2:0] = 001 (6) lcbw[2:0] = 011 (7) lcbw[2:0] = 101 (8) lcbw[2:0] = 111
2004 jun 29 44 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb537 - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 v (db) f (mhz) - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 v (db) f (mhz) (5) (6) (7) (8) (1) (2) (3) (4) fig.23 transfer characteristics of the luminance notch filter in 4.43 mhz mode (y-comb filter disabled) at lubw = 0. (1) lcbw[2:0] = 000. (2) lcbw[2:0] = 010. (3) lcbw[2:0] = 100. (4) lcbw[2:0] = 110. (5) lcbw[2:0] = 001. (6) lcbw[2:0] = 011. (7) lcbw[2:0] = 101. (8) lcbw[2:0] = 111.
2004 jun 29 45 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb538 - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 v (db) f (mhz) - 60 - 57 - 54 - 51 - 48 - 45 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 v (db) f (mhz) (5) (6) (7) (8) (1) (2) (3) (4) fig.24 transfer characteristics of the luminance notch filter in 4.43 mhz mode (y-comb filter disabled) at lubw = 1. (1) lcbw[2:0] = 000. (2) lcbw[2:0] = 010. (3) lcbw[2:0] = 100. (4) lcbw[2:0] = 110. (5) lcbw[2:0] = 001. (6) lcbw[2:0] = 011. (7) lcbw[2:0] = 101. (8) lcbw[2:0] = 111.
2004 jun 29 46 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb539 - 1 0 1 2 3 4 5 6 7 8 9 v (db) v (db) f (mhz) 0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 f (mhz) 0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 (8) (7) (6) (5) (4) (3) (2) (1) (9) (10) (11) (12) (13) (14) (15) (16) - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 3 fig.25 transfer characteristics of the luminance peaking/low-pass filter (sharpness). (1) lufi[3:0] = 0001. (2) lufi[3:0] = 0010. (3) lufi[3:0] = 0011. (4) lufi[3:0] = 0100. (5) lufi[3:0] = 0101. (6) lufi[3:0] = 0110. (7) lufi[3:0] = 0111. (8) lufi[3:0] = 0000. (9) lufi[3:0] = 1000. (10) lufi[3:0] = 1001. (11) lufi[3:0] = 1010. (12) lufi[3:0] = 1011. (13) lufi[3:0] = 1100. (14) lufi[3:0] = 1101. (15) lufi[3:0] = 1110. (16) lufi[3:0] = 1111.
2004 jun 29 47 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.1.3.3 brightness contrast saturation (bcs) control and decoder output levels the resulting y (cvbs) and c b -c r signals are fed to the bcs block, which contains the following functions: chrominance saturation control by dsat7 to dsat0 luminance contrast and brightness control by dcon7 to dcon0 and dbri7 to dbri0 raw data (cvbs) gain and offset adjustment by rawg7 to rawg0 and rawo7 to rawo0 limiting y-c b -c r or cvbs to the values 1 (minimum) and 254 (maximum) to fulfil itu recommendation 601/656 . handbook, full pagewidth luminance 100% + 255 + 235 + 128 + 16 0 white black c b -component + 255 + 240 + 212 + 212 + 128 + 16 + 44 0 blue 100% blue 75% yellow 75% yellow 100% colourless c r -component + 255 + 240 + 128 + 16 + 44 0 red 100% red 75% cyan 75% cyan 100% colourless mhb730 fig.26 y-c b -c r range for scaler input and x port output. itu recommendation 601/656 digital levels with default bcs (decoder) settings dcon[7:0] = 44h, dbri[7:0] = 80h and dsat[7:0] = 40h. equations for modification to the y-c b -c r levels via bcs control i 2 c-bus bytes dbri, dcon and dsat. luminance: chrominance: it should be noted that the resulting levels are limited to 1 to 254 in accordance with itu recommendation 601/656 . y out int dcon 68 ----------------- y 128 C () dbri + = c r c b () out int dsat 64 --------------- - c r c b , 128 C () 128 + = a. y output range. b. c b output range. c. c r output range.
2004 jun 29 48 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae luminance + 255 + 209 + 71 + 60 1 white sync bottom black shoulder black sync luminance + 255 + 199 + 60 1 white sync bottom black shoulder = black sync mgd700 fig.27 cvbs (raw data) range for scaler input, data slicer and x port output. a. sources containing 7.5 ire black level offset (e.g. ntsc m). b. sources not containing black level offset. cvbs levels with default settings rawg[7:0] = 64 and rawo[7:0] = 128. equation for modification of the raw data levels via bytes rawg and rawo: it should be noted that the resulting levels are limited to 1 to 254 in accordance with itu recommendation 601/656 . cvbs out int rawg 64 ------------------ cvbs nom 128 C () rawo + =
2004 jun 29 49 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.1.4 s ynchronization the prefiltered luminance signal is fed to the synchronization stage. its bandwidth is further reduced to 1 mhz by a low-pass filter. the sync pulses are sliced and fed to the phase detectors where they are compared with the sub-divided clock frequency. the resulting output signal is applied to the loop filter to accumulate all phase deviations. internal signals (e.g. hcl and hsy) are generated in accordance with analog front-end requirements. the loop filter signal drives an oscillator to generate the line frequency control signal (lfco); see fig.28. the detection of pseudo syncs as part of the macrovision copy protection standard is also done within the synchronization circuit. the result is reported as flag copro within the decoder status byte at subaddress 1fh. 9.1.5 c lock generation circuit the internal cgc generates all clock signals required for the video input processor. the internal signal lfco is a digital-to-analog converted signal provided by the horizontal pll. it is a multiple of the line frequency: 6.75 mhz = 429 f h (50 hz), or 6.75 mhz = 432 f h (60 hz). the lfco signal is multiplied internally by a factor of 2 and 4 in the pll circuit (including phase detector, loop filtering, vco and frequency divider) to obtain the output clock signals. the rectangular output clocks have a 50 % duty cycle. table 16 decoder clock frequencies clock frequency (mhz) xtal 24.576 or 32.110 llc 27 llc2 13.5 llc4 (internal) 6.75 llc8 (virtual) 3.375 band pass fc = llc/4 zero cross detection phase detection loop filter divider 1/2 divider 1/2 oscillator mhb330 llc2 llc lfco fig.28 block diagram of the clock generation circuit. 9.1.6 p ower - on reset and ce input a missing clock, insufficient digital or analog v ddad supply voltages (below 2.7 v) will start the reset sequence; all outputs are forced to 3-state (see fig.29). the indicator output resd is low for approximately 128 llc after the internal reset and can be applied to reset other circuits of the digital tv system. it is possible to force a reset by pulling the chip enable (ce) to ground. after the rising edge of ce and sufficient power supply voltage, the outputs llc, llc2 and sdad return from 3-state to active, while the other signals have to be activated via programming.
2004 jun 29 50 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb331 128 lcc 896 lcc digital delay some ms 20 to 200 m s pll-delay < 1 ms res (internal reset) llc resint llcint xtalo ce poc v dda poc logic analog poc v ddd digital poc delay clock pll ce llc clk0 resint res fig.29 power-on control circuit. poc = power-on control. ce = chip enable input. xtalo = crystal oscillator output. llcint = internal system clock. resint = internal reset. llc = line-locked clock output. res = reset output.
2004 jun 29 51 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.2 decoder output formatter the output interface block of the decoder part contains the itu 656 formatter for the expansion port data output xpd7 to xpd0 (see section 10.4.1) and the control circuit for the signals needed for the internal paths to the scaler and data slicer part. it also controls the selection of the reference signals for the rt port (rtco, rts0 and rts1) and the expansion port (xrh, xrv and xdq). the generation of the decoder data type control signals set_raw and set vbi is also done within this block. these signals are decoded from the requested data type for the scaler input and/or the data slicer, selectable by the control registers lcr2 to lcr24; see section 18.2.4.2. for each lcr value, from 2 to 23, the data type can be programmed individually. lcr2 to lcr23 refer to line numbers. the selection in lcr24 values is valid for the rest of the corresponding field. the upper nibble contains the value for field 1 (odd), the lower nibble for field 2 (even). the relationship between lcr values and line numbers can be adjusted via voff8 to voff0, located in subaddresses 5bh (bit 4) and 5ah (bits 7 to 0) and foff subaddress 5bh (bit 7). the recommended values are voff[8:0] = 03h for 50 hz sources (with foff = 0) and voff[8:0] = 06h for 60 hz sources (with foff = 1), to accommodate line number conventions as used for pal, secam and ntsc standards; see tables 18 to 21. table 17 data formats at decoder output data type number data type decoder output data format 0 teletext eurowst, ccst raw 1 european closed caption raw 2 video programming service (vps) raw 3 wide screen signalling bits raw 4 us teletext (wst) raw 5 us closed caption (line 21) raw 6 video component signal, vbi region y-c b -c r 4:2:2 7 cvbs data raw 8 teletext raw 9 vitc/ebu time codes (europe) raw 10 vitc/smpte time codes (usa) raw 11 reserved raw 12 us nabts raw 13 moji (japanese) raw 14 japanese format switch (l20/22) raw 15 video component signal, active video region y-c b -c r 4:2:2
2004 jun 29 52 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... table 18 relationship of lcr to line numbers in 525 lines/60 hz systems (part 1) vertical line offset, voff[8:0] = 06h (subaddresses 5bh[4] and 5ah[7:0]); horizontal pixel offset, hoff[10:0] = 347h (subaddresses 5bh[2:0] and 59h[7:0]); foff = 1 (subaddress 5bh[7]) table 19 relationship of lcr to line numbers in 525 lines/60 hz systems (part 2) vertical line offset, voff[8:0] = 06h (subaddresses 5bh[4] and 5ah[7:0]); horizontal pixel offset, hoff[10:0] = 347h (subaddresses 5bh[2:0] and 59h[7:0]); foff = 1 (subaddress 5bh[7]) table 20 relationship of lcr to line numbers in 625 lines/50 hz systems (part 1) vertical line offset, voff[8:0] = 03h (subaddresses 5bh[4] and 5ah[7:0]); horizontal pixel offset, hoff[10:0] = 347h (subaddresses 5bh[2:0] and 59h[7:0]); foff = 0 (subaddress 5bh[7]) table 21 relationship of lcr to line numbers in 625 lines/50 hz systems (part 2) vertical line offset, voff[8:0] = 03h (subaddresses 5bh[4] and 5ah[7:0]); horizontal pixel offset, hoff[10:0] = 347h (subaddresses 5bh[2:0] and 59h[7:0]); foff = 0 (subaddress 5bh[7]) line number (1st ?eld) 521 522 523 524 525 1 2 3 4 5 6 7 8 9 active video equalization pulses serration pulses equalization pulses line number (2nd ?eld) 259 260 261 262 263 264 265 266 267 268 269 270 271 272 active video equalization pulses serration pulses equalization pulses lcr 24 23456789 line number (1st ?eld) 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 nominal vbi lines f1 active video line number (2nd ?eld) 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 nominal vbi lines f2 active video lcr 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 line number (1st ?eld) 62162262362462512345 active video equalization pulses serration pulses equalization pulses line number (2nd ?eld) 309 310 311 312 313 314 315 316 317 318 active video equalization pulses serration pulses equalization pulses lcr 24 2345 line number (1st ?eld) 678910111213141516171819202122232425 nominal vbi lines f1 active video line number (2nd ?eld) 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 nominal vbi lines f2 active video lcr 67891011121314151617181920212223 24
2004 jun 29 53 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb540 vgate vsto [ 8:0 ] = 134h vsta [ 8:0 ] = 15h (a) 1st field cvbs itu counting single field counting 1 1 2 2 3 3 4 4 5 5 6 6 7 7 ... ... 22 22 625 312 624 311 623 310 622 309 23 23 fid href f_itu656 v123 (1) vgate cvbs itu counting single field counting fid href f_itu656 v123 (1) vsto [ 8:0 ] = 134h vsta [ 8:0 ] = 15h (b) 2nd field 313 313 314 1 315 2 316 3 317 4 318 5 319 6 ... ... 335 22 312 312 311 311 310 310 309 309 336 23 fig.30 vertical timing diagram for 50 hz/625 line systems. (1) the inactive going edge of the v123 signal indicates whether the field is odd or even. if href is active during the falling edge of v123, the field is odd (field 1). if href is inactive during the falling edge of v123, the field is even. the specific position of the slope is dependent on the internal processing delay and may change a few clock cycles from version to version. the control signals listed above are available on pins rts0, rts1, xrh and xrv according to the following table: for further information see programming section, tables 171, 172 and 173. name rts0 (pin k13) rts1 (pin l10) xrh (pin n2) xrv (pin l5) href x x x - f_itu656 --- x v123 x x - x vgate x x -- fid x x --
2004 jun 29 54 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb541 vgate vsto [ 8:0 ] = 101h vsta [ 8:0 ] = 011h (a) 1st field cvbs itu counting single field counting 4 4 5 5 6 6 7 7 8 8 9 9 10 10 ... ... 21 21 3 3 2 2 1 1 525 262 22 22 fid href f_itu656 v123 (1) vgate cvbs itu counting single field counting fid href f_itu656 v123 (1) vsto [ 8:0 ] = 101h vsta [ 8:0 ] = 011h (b) 2nd field 266 3 267 4 268 5 269 6 270 7 271 8 272 9 ... ... 284 21 265 2 264 1 263 263 262 262 285 22 fig.31 vertical timing diagram for 60 hz/525 line systems. (1) the inactive going edge of the v123 signal indicates whether the field is odd or even. if href is active during the falling edge of v123, the field is odd (field 1). if href is inactive during the falling edge of v123, the field is even. the specific position of the slope is dependent on the internal processing delay and may change a few clock cycles from version to version. the control signals listed above are available on pins rts0, rts1, xrh and xrv according to the following table: for further information see programming section, tables 171, 172 and 173. name rts0 (pin k13 rts1 (pin l10) xrh (pin n2) xrv (pin l5) href x x x - f_itu656 --- x v123 x x - x vgate x x -- fid x x --
2004 jun 29 55 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 108 - 107 107 - 106 mhb542 cvbs input 140 1/llc 5 2/llc expansion port data output 12 2/llc 720 2/llc 144 2/llc 138 2/llc 720 2/llc burst processing delay adc to expansion port: 0 0 2 2/llc 2 2/llc href (60 hz) hs (60 hz) sync clipped 16 2/llc 1 2/llc programming range (step size: 8/llc) programming range (step size: 8/llc) hs (50 hz) href (50 hz) cref cref2 cref cref2 fig.32 horizontal timing diagram (50/60 hz). the signals href, hs, cref2 and cref are available on pins rts0 and/or rts1 (see section 18.2.2.19 tables 171 and 172); their polarity can be inverted via rtp0 and/or rtp1. the signals href and hs are available on pin xrh (see section 18.2.2.20 table 173).
2004 jun 29 56 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.3 scaler the high performance video scaler (hps) is based on the system as implemented in the saa7140, but enhanced in some aspects. vertical upsampling is supported and the processing pipeline buffer capacity is enhanced, to allow more flexible video stream timing at the image port, discontinuous transfers and handshake. the internal data flow from block to block is discontinuous dynamically, due to the scaling process. the flow is controlled by internal data valid and data request flags (internal handshake signalling) between the sub-blocks. therefore the entire scaler acts as a pipeline buffer. depending on the actually programmed scaling parameters the effective buffer can exceed to an entire line. the access/bandwidth requirements to the vga frame buffer are reduced significantly. the high performance video scaler in the SAA7108AE; saa7109ae has the following major blocks. acquisition control (horizontal and vertical timer) and task handling (the region/field/frame based processing) prescaler, for horizontal downscaling by an integer factor, combined with appropriate band limiting filters, especially anti-aliasing for cif format brightness, saturation and contrast control for scaled output data line buffer, with asynchronous read and write, to support vertical upscaling (e.g. for videophone application, converting 240 into 288 lines, y-c b -c r 4:2:2) vertical scaling, with phase accurate linear phase interpolation (lpi) for zoom and downscaling, or phase accurate accumulation mode (acm) for large downscaling ratios and better anti-alias suppression variable phase delay (vpd), operates as horizontal phase accurate interpolation for arbitrary non-integer scaling ratios, supporting conversion between square and rectangular pixel sampling output formatter for scaled y-c b -c r 4:2:2, y-c b -c r 4:1:1 and y only (format also for raw data) fifo, 32-bit wide, with 64 pixel capacity in y-c b -c r formats output interface, 8 or 16-bit (only if extended by h port) data pins wide, synchronous or asynchronous operation, with stream events on discrete pins, or coded in the data stream. the overall h and v zooming (hv_zoom) is restricted by the input/output data rate relationships. with a safety margin of 2 % for running in and running out, the maximum hv_zoom is equal to: for example: 1. input from decoder: 50 hz, 720 pixel, 288 lines, 16-bit data at 13.5 mhz data rate, 1 cycle per pixel; output: 8-bit data at 27 mhz, 2 cycles per pixel; the maximum hv_zoom is equal to: 2. input from x port: 60 hz, 720 pixel, 240 lines, 8-bit data at 27 mhz data rate (itu 656), 2 cycles per pixel; output via i + h port: 16-bit data at 27 mhz clock, 1 cycle per pixel; the maximum hv_zoom is equal to: the video scaler receives its input signal from the video decoder or from the expansion port (x port). it gets 16-bit y-c b -c r 4:2:2 input data at a continuous rate of 13.5 mhz from the decoder. a discontinuous data stream can be accepted from the expansion port, normally 8-bit wide itu 656 like y-c b -c r data, accompanied by a pixel qualifier on xdq. the input data stream is sorted into two data paths, one for luminance (or raw samples), and one for time multiplexed chrominance c b and c r samples. a y-c b -c r 4:1:1 input format is converted to 4 :2:2 for the horizontal prescaling and vertical filter scaling operation. the scaler operation is defined by two programming pages a and b, representing two different tasks that can be applied field alternating or to define two regions in a field (e.g. with different scaling range, factors, and signal source during odd and even fields). each programming page contains control for: signal source selection and formats task handling and trigger conditions input and output acquisition window definition h prescaler, v scaler and h phase scaling. raw vbi data will be handled as specific input format and need its own programming page (equals own task). 0.98 t_input_field t_v_blanking C in_pixel in_lines out_cycle_per_pix t_out_clk ------------------------------------------------------------------------------------------------------------------------------- ------ - 0.98 20 ms 24 64 m s C 720 288 2 37 ns -------------------------------------------------------- 1.18 = 0.98 16.666 ms 22 64 m s C 720 240 1 37 ns -------------------------------------------------------------- 2.34 =
2004 jun 29 57 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae in vbi pass through operation the processing of prescaler and vertical scaling has to be disabled, however the horizontal fine scaling vpd can be activated. upscaling (oversampling, zooming), free of frequency folding, up to factor 3.5 can be achieved, as required by some software data slicing algorithms. these raw samples are transported through the image port as valid data and can be output as y only format. the lines are framed by sav and eav codes. 9.3.1 a cquisition control and task handling ( subaddresses 80h, 90h, 91h, 94h to 9fh and c4h to cfh) the acquisition control receives horizontal and vertical synchronization signals from the decoder section or from the x port. the acquisition window is generated via pixel and line counters at the appropriate places in the data path. only qualified pixels and lines (lines with qualified pixel) are counted from the x port. the acquisition window parameters are as follows: signal source selection: input video stream and formats from the decoder, or from the x port (programming bits scsrc[1:0] 91h[5:4] and fsc[2:0] 91h[2:0]) remark : the input of raw vbi data from the internal decoder should be controlled via the decoder output formatter and the lcr registers (see section 9.2) vertical offset: defined in lines of the video source, parameter yo[11:0] 99h[3:0] 98h[7:0] vertical length: defined in lines of the video source, parameter ys[11:0] 9bh[3:0] 9ah[7:0] vertical length: defined in number of target lines, as a result of vertical scaling, parameter yd[11:0] 9fh[3:0] 9eh[7:0] horizontal offset: defined in number of pixels of the video source, parameter xo[11:0] 95h[3:0] 94h[7:0] horizontal length: defined in number of pixels of the video source, parameter xs[11:0] 97h[3:0] 96h[7:0] horizontal destination size: defined in target pixels after fine scaling, parameter xd[11:0] 9dh[3:0] 9ch[7:0]. the source start offset xo(11:0) and yo(11:0) opens the acquisition window, and the target size (xd11 to xd0, yd11 to yd0) closes the window, however the window is cut vertically if there are less output lines than required. the trigger events for the pixel and line counts are the horizontal and vertical reference edges as defined in subaddress 92h. the task handling is controlled by subaddress 90h; see section 9.3.1.2. 9.3.1.1 input ?eld processing the trigger event for the field sequence detection from external signals (x port) are defined in subaddress 92h. the state of the scalers horizontal reference signal at the time of the vertical reference edge is taken from the x port as field sequence identifier (fid). for example, if the falling edge of the xrv input signal is the reference and the state of xrh input is logic 0 at that time, the detected field id is logic 0. the bits xfdv[92h[7]] and xfdh[92h[6]] define the detection event and state of the flag from the x port. for the default setting of xfdv and xfdh at 00 is taken from the state of the horizontal input at the falling edge of the vertical input. the scaler gets corresponding field id information directly from the SAA7108AE; saa7109ae decoder path. the fid flag is used to determine whether the first or second field of a frame is going to be processed within the scaler, and it is also used as trigger conditions for the task handling (see bits strc[1:0] 90h[1:0]). according to itu 656, fid at logic 0 means first field of a frame. to ease the application, the polarities of the detection results on the x port signals and the internal decoder id can be changed via xfdh. as the v sync from the decoder path has a half line timing (due to the interlaced video signal), but the scaler processing only recognises full lines, during 1st fields from the decoder the line count of the scaler can possibly shift by one line, compared to the 2nd field. this can be compensated for by switching the vertical trigger event, as defined by xdv0, to the opposite v sync edge or by using the vertical scalers phase offsets. the vertical timing of the decoder can be seen in figs 30 and 31. as the horizontal and vertical reference events inside the itu 656 data stream (from x port) and the real-time reference signals from the decoder path are processed differently, the trigger events for the input acquisition also have to be programmed differently.
2004 jun 29 58 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 22 processing trigger and start xdv1 92h[5] xdv0 92h[4] xdh 92h[2] description internal decoder : the processing triggers at the falling edge of the v123 pulse (see figs 30 (50 hz) and 31 (60 hz)), and starts earliest with the rising edge of the decoder href at line number: 0 1 0 4/7 (50/60 hz, 1st field), respectively 3/6 (50/60 hz, 2nd field) (decoder count) 0 0 0 2/5 (50/60 hz, 1st field), respectively 2/5 (50/60 hz, 2nd field) (decoder count) 000 external itu 656 stream : the processing starts earliest with sav at line number 23 (50 hz system), respectively line 20 (60 hz system) (according itu 656 count) 9.3.1.2 task handling the task handler controls the switching between the two programming register sets. it is controlled by subaddresses 90h and c0h. a task is enabled via the global control bits tea[80h[4]] and teb[80h[5]]. the handler is then triggered by events which can be defined for each register set. in the event of a programming error the task handling and the complete scaler can be reset to the initial states by the software reset bit swrst[88h[5]] being set to logic 0. a software reset must be done after programming especially if the programming registers, related acquisition window and scaler are reprogrammed while a task is active. the difference in the disabling/enabling of a task, which is evaluated at the end of a running task (when swrst is set to logic 0) is that it sets the internal state machines directly to their idle states. the start condition for the handler is defined by bits strc[1:0] 90h[1:0] and means: start immediately, wait for next v sync, next fid at logic 0 or next fid at logic 1. the fid is evaluated if the vertical and horizontal offsets are reached. with rptsk[90h[2]] at logic 1 the actual running task is repeated (under the defined trigger conditions) before handing control over to the alternate task. to support field rate reduction, the handler is also enabled to skip fields (bits fskp[2:0] 90h[5:3]) before executing the task. a toggle flag is generated (used for the correct output field processing), which changes state at the beginning of a task every time a task is activated; examples are given in section 9.3.1.3. remarks : to activate a task, the start condition must be fulfilled and the acquisition window offsets must be reached . for example, in case of start immediately, and two regions are defined for one field, the offset of the lower region must be greater than (offset + length) of the upper region, if not, the actual counted h and v position at the end of the upper task is beyond the programmed offsets and the processing will wait for next v. basically, the trigger conditions are checked when a task is activated . it is important to know that they are not checked while a task is inactive. so it is not possible to trigger to the next logic 0 or logic 1 with overlapping offset and active video ranges between the tasks (e.g. task a strc[2:0] = 2, yo[11:0] = 310 and task b strc[2:0] = 3, yo[11:0] = 310 results in an output field rate of 50 3 hz). after power-on or software reset (via swrst[88h[5]]) task b gets priority over task a .
2004 jun 29 59 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.3.1.3 output ?eld processing as a reference for the output field processing, two signals are available for the back-end hardware. these signals are the input field id from the scaler source and a toggle flag, which shows that an active task is used an odd (1, 3, 5...) or even (2, 4, 6...) number of times. using a single or both tasks and reducing the field or frame rate with the task handling functionality, the toggle information can be used to reconstruct an interlaced scaled picture at a reduced frame rate. the toggle flag is not synchronized to the input field detection, as it is only dependent on the interpretation of this information by the external hardware i.e. whether the output of the scaler is processed correctly; see section 9.3.3. when ofidc = 0, the scalers input field id is available as output field id on bit 6 of sav and eav, and respectively on pin igp0 (igp1), if the fid output is selected. when ofidc[90h[6]] = 1, the toggle information is available as output field id on bit 6 of sav and eav, and respectively on pin igp0 (igp1) if the fid output is selected. additionally bit 7 of sav and eav can be defined via conlh[90h[7]]. when conlh[90h[7]] = 0 (default) it sets bit 7 to logic 1; a logic 1 inverts the sav/eav bit 7. so it is possible to mark the output of both tasks by different sav/eav codes. this bit can also be seen as task flag on pins igp0 (igp1), if the task output is selected.
2004 jun 29 60 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... table 23 example for ?eld processing notes 1. single task every field; ofidc = 0; subaddress 90h at 40h; teb[80h[5]] = 0. 2. tasks are used to scale to different output windows, priority on task b after swrst. 3. both tasks at 1 2 frame rate; ofidc = 0; subaddresses 90h at 43h and c0h at 42h. 4. in examples 3 and 4 the association between input fid and tasks can be flipped, dependent on which time the swrst is de-asserte d. 5. task b at 2 3 frame rate constructed from neighbouring motion phases; task a at 1 3 frame rate of equidistant motion phases; ofidc = 1; subaddresses 90h at 41h and c0h at 45h. 6. task a and b at 1 3 frame rate of equidistant motion phases; ofidc = 1; subaddresses 90h at 41h and c0h at 49h. 7. state of prior field. 8. it is assumed that input/output fid = 0 (upper lines); up = upper lines; lo = lower lines. 9. o = data output; no = no output. subject field sequence frame/field example 1 (1) example 2 (2)(3) example 3 (2)(4)(5) example 4 (2)(4)(6) 1/1 1/2 2/1 1/1 1/2 2/1 2/2 1/1 1/2 2/1 2/2 3/1 3/2 1/1 1/2 2/1 2/2 3/1 3/2 processed by task a a a b a b a b b a b b a b b a b b a state of detected itu 656 fid 0 1 00101010101 0 10 1 01 toggle ?ag 1 0 1 1 1 0 0 1 0 1 1 0 0 0 (7) 111 (7) 00 bit 6 of sav/eav byte 0 1 0 0 1 0 1 1 0 1 1 0 0 0 (7) 111 (7) 00 required sequence conversion at the vertical scaler (8) up up lo lo up up up up lo lo up up lo lo up lo lo up up lo lo lo up up lo up up up lo lo up lo lo lo up up lo up output (9) o o ooooooooooonooonooo
2004 jun 29 61 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.3.2 h orizontal scaling the overall horizontal scaling factor has to be split into a binary and a rational value according to the following equation: where, the parameter of the prescaler xpsc[5:0] = 1 to 63 and the parameter of vpd phase interpolation xscy[12:0] = 300 to 8191 (0 to 299 are only theoretical values). for example, 1 3.5 is split into 1 4 1.14286. the binary factor is processed by the prescaler, the arbitrary non-integer ratio is achieved via the variable phase delay vpd circuitry, called horizontal fine scaling. the latter calculates horizontally interpolated new samples with a 6-bit phase accuracy, which relates to less than 1 ns jitter for regular sampling schemes. together the prescaler and fine scaler form the horizontal scaler of the SAA7108AE; saa7109ae. using the accumulation length function of the prescaler (xacl[5:0] a1h[5:0]), application and destination dependent (e.g. scale for display or for a compression machine), a compromise between visible bandwidth and alias suppression can be found. 9.3.2.1 horizontal prescaler (subaddresses a0h to a7h and d0h to d7h) the prescaling function consists of an fir anti-alias filter stage and an integer prescaler, which together form an adaptive prescale dependent low-pass filter to balance the sharpness and aliasing effects. the fir pre-filter stage implements different low-pass characteristics to reduce the anti-alias for downscales in the range of 1 to 1 2 . a cif optimized filter is built-in, which reduces artefacts for cif output formats (to be used in combination with the prescaler set to 1 2 scale); see table 24. the function of the prescaler is defined by: an integer prescaling ratio xpsc[5:0] a0h[5:0] (equals 1 to 63), which covers the integer downscale range 1to 1 63 an averaging sequence length xacl[5:0] a1h[5:0] (equals 0 to 63); range 1 to 64 a dc gain renormalization xdcg[2:0] a2h[2:0]; 1 down to 1 128 ) the bit xc2_1[a2h[3]], which defines the weighting of the incoming pixels during the averaging process C xc2_1 = 0 t 1 + 1...+ 1 + 1 C xc2_1 = 1 t 1 + 2...+ 2 + 1. the prescaler creates a prescale dependent fir low-pass, with up to 64 + 7 filter taps. the parameter xacl[5:0] can be used to vary the low-pass characteristic for a given integer prescale of 1 xpsc[5:0] . the user can therewith decide between signal bandwidth (sharpness impression) and alias. the equation for the xpsc[5:0] calculation is: where: the range is 1 to 63 ( value 0 is not allowed ); npix_in = number of input pixel, and npix_out = number of desired output pixel over the complete horizontal scaler. the use of the prescaler results in a xacl[5:0] and xc2_1 dependent gain amplification. the amplification can be calculated according to the equation: dc gain = [(xacl[5:0] - xc2_1) + 1] (xc2_1 + 1) it is recommended to use sequence lengths and weights, which results in a 2 n dc gain amplification, as these amplitudes can be renormalized by the xdcg[2:0] controlled shifter of the prescaler. the renormalization range of xdcg[2:0] is 1, 1 2 ... down to 1 128 . other amplifications have to be normalized by using the following bcs control circuitry. in these cases the prescaler has to be set to an overall gain 1, e.g. for an accumulation sequence of 1 + 1 + 1 (xacl[5:0] = 2 and xc2_1 = 0), xdcg[2:0] must be set to 010, which equals 1 4 and the bcs has to amplify the signal to 4 3 (satn[7:0] and cont[7:0] value = lower integer of 4 3 64). the use of xacl[5:0] is xpsc[5:0] dependent. xacl[5:0] must be <2 xpsc[5:0]. xacl[5:0] can be used to find a compromise between bandwidth (sharpness) and alias effects. h scale ratio output pixel input pixel ------------------------------ = h scale ratio 1 xpsc[5:0] --------------------------- - 1024 xscy[12:0] ------------------------------ - = xpsc[5:0] lower integer of npix_in npix_out ----------------------- = 1 2 n ------
2004 jun 29 62 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae remark : due to bandwidth considerations xpsc[5:0] and xacl[5:0] can be chosen differently to the previously mentioned equations or table 25, as the horizontal phase scaling is able to scale in the range from zooming up by factor 3 to downscaling by a factor of 1024 8191 . figs 35 and 36 show some frequency characteristics of the prescaler. table 25 shows the recommended prescaler programming. other programming, than given in table 25, may result in better alias suppression, but the resulting dc gain amplification needs to be compensated by the bcs control, according to the equation: where: 2 xdcg[2:0] 3 dc gain dc gain = (xc2_1 + 1) xacl[5:0] + (1 - xc2_1). for example, if xacl[5:0] = 5, xc2_1 = 1, then dc gain = 10 and the required xdcg[2:0] = 4. the horizontal source acquisition timing and the prescaling ratio is identical for both the luminance and chrominance path, but the fir filter settings can be defined differently in the two channels. fade-in and fade-out of the filters is achieved by copying an original source sample each as first and last pixel after prescaling. figs 33 and 34 show the frequency characteristics of the selectable fir filters. cont[7:0] satn[7:0] lower integer of 2 xdcg[2:0] dc gain 64 ---------------------------------- == table 24 fir pre?lter functions pfuv[1:0] a2h[7:6] pfy[1:0] a2h[5:4] luminance filter coefficients chrominance coefficients 00 bypassed bypassed 01 121 121 10 - 1 1 1.75 4.5 1.75 1 - 1 381083 11 12221 12221
2004 jun 29 63 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb543 v (db) 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 f_sig/f_clock (1) (2) (3) - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 6 3 fig.33 luminance prefilter characteristic. (1) pfy[1:0] = 01. (2) pfy[1:0] = 10. (3) pfy[1:0] = 11. mhb544 v (db) 0 0.025 0.05 0.075 0.1 0.125 0.15 0.175 0.2 0.225 0.25 f_sig/f_clock (1) (2) (3) - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 6 3 fig.34 chrominance prefilter characteristic. (1) pfuv[1:0] = 01. (2) pfuv[1:0] = 10. (3) pfuv[1:0] = 11.
2004 jun 29 64 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb545 v (db) 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 (1) (2) (3) (4) (5) f_sig/f_clock - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 6 3 fig.35 examples for prescaler filter characteristics: effect of increasing xacl[5:0]. xc2_1 = 0; zeros at with xacl = (1), (2), (3), (4) or (5) fn 1 xacl 1 + ------------------------ - = mhb546 - 42 - 39 - 36 - 33 - 30 - 27 - 24 - 21 - 18 - 15 - 12 - 9 - 6 - 3 0 6 3 v (db) 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 f_sig/f_clock (1) (2) (3) (4) (5) (6) 3 db at 0.25 6 db at 0.33 fig.36 examples for prescaler filter characteristics: setting xc2_1 = 1. (1) xc2_1 = 0 and xacl[5:0] = 1. (2) xc2_1 = 1 and xacl[5:0] = 2. (3) xc2_1 = 0 and xacl[5:0] = 3. (4) xc2_1 = 1 and xacl[5:0] = 4. (5) xc2_1 = 0 and xacl[5:0] = 7. (6) xc2_1 = 1 and xacl[5:0] = 8.
2004 jun 29 65 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 25 example of xacl[5:0] usage note 1. resulting fir function. prescale ratio xpsc [5:0] recommended values fir prefilter pfy[1:0]/ pfuv[1:0] for lower bandwidth requirements for higher bandwidth requirements xacl[5:0] xc2_1 xdcg[2:0] xacl[5:0] xc2_1 xdcg[2:0] 110 0 0 0 0 0 0to2 1 2 2 2 1 2 1 0 1 0 to 2 (1 2 1) 1 4 (1) (1 1) 1 2 (1) 1 3 34 1 3 3 0 2 2 (12221) 1 8 (1) (1 1 1 1) 1 4 (1) 1 4 47 0 3 4 1 3 2 (11111111) 1 8 (1) (12221) 1 8 (1) 1 5 58 1 4 7 0 3 2 (122222221) 1 16 (1) (11111111) 1 8 (1) 1 6 68 1 4 7 0 3 3 (122222221) 1 16 (1) (11111111) 1 8 (1) 1 7 78 1 4 7 0 3 3 (122222221) 1 16 (1) (11111111) 1 8 (1) 1 8 815 0 4 8 1 4 3 (1111111111111111) 1 16 (1) (122222221) 1 16 (1) 1 9 915 0 4 8 1 4 3 (1111111111111111) 1 16 (1) (122222221) 1 16 (1) 1 10 10 16 1 5 8 1 4 3 (12222222222222221) 1 32 (1) (122222221) 1 16 (1) 1 13 13 16 1 5 16 1 5 3 1 15 15 31 0 5 16 1 5 3 1 16 16 31 0 5 16 1 5 3 1 19 19 32 1 6 32 1 6 3 1 31 31 32 1 6 32 1 6 3 1 32 32 63 1 7 32 1 6 3 1 35 35 63 1 7 63 1 7 3
2004 jun 29 66 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.3.2.2 horizontal ?ne scaling (variable phase delay ?lter; subaddresses a8h to afh and d8h to dfh) the horizontal fine scaling (vpd) should operate at scaling ratios between 1 2 and 2 (0.8 and 1.6), but can also be used for direct scaling in the range from 1 7.999 to (theoretical) zoom 3.5 (restriction due to the internal data path architecture), without prescaler. in combination with the prescaler a compromise between sharpness impression and alias can be found, which is signal source and application dependent. for the luminance channel a filter structure with 10 taps is implemented, for the chrominance a filter with 4 taps. luminance and chrominance scale increments (xscy[12:0] a9h[4:0] a8h[7:0] and xscc[12:0] adh[4:0] ach[7:0]) are defined independently, but must be set in a 2 : 1 relationship in the actual data path implementation. the phase offsets xphy[7:0] aah[7:0] and xphc[7:0] aeh[7:0] can be used to shift the sample phases slightly. xphy[7:0] and xphc[7:0] covers the phase offset range 7.999t to 1 32 t. the phase offsets should also be programmed in a 2 : 1 ratio. the underlying phase controlling dto has a 13-bit resolution. according to the equations and the vpd covers the scale range from 0.125 to zoom 3.5. the vpd acts equivalent to a polyphase filter with 64 possible phases. in combination with the prescaler, it is possible to get high accurate samples from a highly anti-aliased integer downscaled input picture. 9.3.3 v ertical scaling the vertical scaler of the SAA7108AE; saa7109ae decoder part consists of a line fifo buffer for line repetition and the vertical scaler block, which implements the vertical scaling on the input data stream in 2 different operational modes from theoretical zoom by 64 down to icon size 1 64 . the vertical scaler is located between the bcs and horizontal fine scaler, so that the bcs can be used to compensate for the dc gain amplification of the acm mode (see section 9.3.3.2) as the internal rams are only 8-bit wide. 9.3.3.1 line fifo buffer (subaddresses 91h, b4h and c1h, e4h) the line fifo buffer is a dual ported ram structure for 768 pixels, with asynchronous write and read access. the line buffer can be used for various functions, but not all functions may be available simultaneously. the line buffer can buffer a complete unscaled active video line or more than one shorter lines (only for non-mirror mode), for selective repetition for vertical zoom-up. for zooming up from 240 lines to 288 lines e.g., every fourth line is requested (read) twice from the vertical scaling circuitry for calculation. for conversion of a 4 : 2 : 0 or 4:1:0 input sampling scheme (mpeg, video phone, indeo yuv-9) to itu like sampling scheme 4:2:2, the chrominance line buffer is read twice or four times, before being refilled again by the source. by means of the input acquisition window definition it has to be preserved, that the processing starts with a line containing luminance and chrominance information for 4:2:0 and 4:1:0 input. the bits fsc[2:1] 91h[2:1] define the distance between the y/c lines. in case of 4 :2:2 and 4 : 1 : 1 fsc2 and fsc1 have to be set to 00. the line buffer can also be used for mirroring, i.e. for flipping the image left to right, for the vanity picture in video phone application (bit ymir[b4h[4]]). in mirror mode only one active prescaled line can be held in the fifo at a time. the line buffer can be utilized as excessive pipeline buffer for discontinuous and variable rate transfer conditions at the expansion port or image port. 9.3.3.2 vertical scaler (subaddresses b0h to bfh and e0h to efh) vertical scaling of any ratio from 64 (theoretical zoom) to 1 63 (icon) can be applied. the vertical scaling block consists of another line delay, and the vertical filter structure, that can operate in two different modes. these are the linear phase interpolation (lpi) and accumulation (acm) modes, controlled by ymode[b4h[0]]. xscy[12:0] 1024 npix_in xpsc[5:0] --------------------------- - 1 npix_out ----------------------- = xscc[12:0] xscy[12:0] 2 ------------------------------ - =
2004 jun 29 67 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae lpi mode : in the linear phase interpolation mode (ymode = 0) two neighbouring lines of the source video stream are added together, but weighted by factors corresponding to the vertical position (phase) of the target output line relative to the source lines. this linear interpolation has a 6-bit phase resolution, which equals 64 intra line phases. it interpolates between two consecutive input lines only. the lpi mode should be applied for scaling ratios around 1 (down to 1 2 ), it must be applied for vertical zooming . acm mode : the vertical accumulation (acm) mode (ymode = 1) represents a vertical averaging window over multiple lines, sliding over the field. this mode also generates phase correct output lines. the averaging window length corresponds to the scaling ratio, resulting in an adaptive vertical low-pass effect, to greatly reduce aliasing artefacts. acm can be applied for downscales only from ratio 1 down to 1 64 . acm results in a scale dependent dc gain amplification , which has to be precorrected by the bcs control of the scaler part. the phase and scale controlling dto calculates in 16-bit resolution, controlled by parameters yscy[15:0] b1h[7:0] b0h[7:0] and yscc[15:0] b3h[7:0] b2h[7:0], continuously over the entire filed. a start offset can be applied to the phase processing by means of the parameters ypy3[7:0] to ypy0[7:0] in bfh[7:0] to bch[7:0] and ypc3[7:0] to ypc0[7:0] in bbh[7:0] to b8h[7:0]. the start phase covers the range of 255 32 to 1 32 lines offset. by programming appropriate, opposite, vertical start phase values (subaddresses b8h to bfh and e8h to efh) depending on odd/even field id of the source video stream and a/b page cycle, frame id conversion and field rate conversion are supported (i.e. de-interlacing, re-interlacing). figs 37 and 38 and tables 26 and 27 describe the use of the offsets. remark: the vertical start phase, as well as the scaling ratio are defined independently for luminance and chrominance channels, but must be set to the same values in the actual implementation for accurate 4:2:2 output processing. the vertical processing communicates on its input side with the line fifo buffer. the scale related equations are: scaling increment calculation for acm and lpi mode, downscale and zoom: yscy[15:0] and yscc[15:0] bcs value to compensate dc gain in acm mode (contrast and saturation have to be set): cont[7:0] a5h[7:0] respectively satn[7:0] a6h[7:0] , or 9.3.3.3 use of the vertical phase offsets as shown in section 9.3.1.3, the scaler processing may run randomly over the interlaced input sequence. additionally the interpretation and timing between itu 656 field id and real-time detection by means of the state of h sync at the falling edge of v sync may result in different field id interpretation. a vertically scaled interlaced output also gets a larger vertical sampling phase error, if the interlaced input fields are processed, without regard to the actual scale at the starting point of operation (see fig.37). the four events to be considered are illustrated in fig.38. in tables 26 and 27 pho is a usable common phase offset. it should be noted that the equations in fig.38 also produce an interpolated output for the unscaled case, as the geometrical reference position for all conversions is the position of the first line of the lower field; see table 26. if there is no need for up-lo and lo-up conversion and the input field id is the reference for the back-end operation, then it is up-lo = up-up and lo-up = lo-lo and the 1 2 line phase shift (pho + 16) that can be skipped; this case is given in table 27. the SAA7108AE; saa7109ae supports 4 phase offset registers per task and component (luminance and chrominance). the value of 20h represents a phase shift of one line. the registers are assigned to the following events; e.g. subaddresses b8h to bbh: b8h: 00 = input field id 0, task status bit 0 (toggle status, see section 9.3.1.3) b9h: 01 = input field id 0, task status bit 1 bah: 10 = input field id 1, task status bit 0 bbh: 11 = input field id 1, task status bit 1. lower integer of = 1024 nline_in nline_out ------------------------ - ? ?? lower integer of nline_out nline_in ------------------------ - 64 ? ?? = lower integer of 1024 yscy[15:0] ------------------------------ - 64 ? ?? =
2004 jun 29 68 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae depending on the input signal (interlaced or non-interlaced) and the task processing (50 hz or field reduced processing with one or two tasks, see examples in section 9.3.1.3), other combinations may also be possible, but the basic equations are the same. mhb547 mismatched vertical line distances scale dependent start offset correct scale dependent position unscaled input scaled output, no phase offset scaled output, with phase offset ?ld 1 ?ld 2 ?ld 1 ?ld 2 ?ld 1 ?ld 2 fig.37 basic problem of interlaced vertical scaling (example: downscale 3 5 ).
2004 jun 29 69 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth mhb548 ?ld 1 ?ld 2 upper lower ?ld 1 ?ld 2 case up-up case lo-lo ?ld 1 ?ld 2 case up-lo case lo-up a b c d fig.38 derivation of the phase related equations (example: interlace vertical scaling down to 3 5 , with field conversion). offset 1024 32 ------------ - 32 1 line shift === a 1 2 -- - input line shift 16 == b 1 2 -- - input line shift 1 2 -- - scale increment + yscy[15:0] 64 ------------------------------ - 16 + == d = no offset = 0 c 1 2 -- - scale increment yscy[15:0] 64 ------------------------------ - == table 26 examples for vertical phase offset usage: global equations input field under processing output field interpreted as used abbreviation equation for phase offset calculation (decimal values) upper input lines upper output lines up-up pho + 16 upper input lines lower output lines up-lo lower input lines upper output lines lo-up pho lower input lines lower output lines lo-lo pho yscy[15:0] 64 ------------------------------ - 16 ++ pho yscy[15:0] 64 ------------------------------ - +
2004 jun 29 70 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 27 vertical phase offset usage; assignment of the phase offsets notes 1. case 1: ofidc[90h[6]] = 0; scaler input field id as output id; back-end interprets output field id at logic 0 as upper output lines. 2. case 2: ofidc[90h[6]] = 1; task status bit as output id; back-end interprets output field id at logic 0 as upper output lines. 3. case 3: ofidc[90h[6]] = 1; task status bit as output id; back-end interprets output field id at logic 1 as upper output lines. detected input field id task status bit vertical phase offset case equation to be used 0 = upper lines 0 ypy0[7:0] and ypc0[7:0] case 1 (1) up-up (pho) case 2 (2) up-up case 3 (3) up-lo 0 = upper lines 1 ypy1[7:0] and ypc1[7:0] case 1 up-up (pho) case 2 up-lo case 3 up-up 1 = lower lines 0 ypy2[7:0] and ypc2[7:0] case 1 lo-lo case 2 lo-up case 3 lo-lo 1 = lower lines 1 ypy3[7:0] and ypc3[7:0] case 1 lo-lo case 2 lo-lo case 3 lo-up pho yscy[15:0] 64 ------------------------------ - 16 C + ? ?? pho yscy[15:0] 64 ------------------------------ - 16 C + ? ?? 9.4 vbi data decoder and capture (subaddresses 40h to 7fh) the SAA7108AE; saa7109ae contains a versatile vbi data decoder. the implementation and programming model accords to the vbi data slicer the built-in multimedia video data acquisition circuit of the saa5284. the circuitry recovers the actual clock phase during the clock run-in period, slices the data bits with the selected data rate, and groups them into bytes. the result is buffered into a dedicated vbi data fifo with a capacity of 2 56 bytes (2 14 dwords). the clock frequency, signal source, field frequency and accepted error count must be defined in subaddress 40h. the vbi data standards that are supported are given in table 28. for lines 2 to 24 of a field, per vbi line, 1 of 16 standards can be selected (lcrxxx[41:57[7:0]]: 23 2 4-bit programming bits). the definition for line 24 is valid for the rest of the corresponding field, normally no text data (video data) should be selected there (lcr24 = ffh) to stop the activity of the vbi data slicer during active video. to adjust the slicers processing to the input signal source, there are offsets in the horizontal and vertical direction available (parameters hoff[5b,59[2:0,7:0]], voff[5b,5a[4,7:0]] and foff[5b[7]]). in difference to the scalers counting, the slicers offsets define the position of the horizontal and vertical trigger events related to the processed video field. the trigger events are the falling edge of href and the falling edge of v123 from the decoder processing part. the relationship of these programming values to the input signal and the recommended values can be seen in tables 18 to 21.
2004 jun 29 71 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 28 data types supported by the data slicer block data type number standard type data rate (mbits/s) framing code fc window ham check 0000 teletext eurowst, ccst 6.9375 27h wst625 always 0001 european closed caption 0.500 001 cc625 0010 vps 5 9951h vps 0011 wide screen signalling bits 5 1e3c1fh wss 0100 us teletext (wst) 5.7272 27h wst525 always 0101 us closed caption (line 21) 0.503 001 cc525 0110 (video data selected) 5 none disable 0111 (raw data selected) 5 none disable 1000 teletext 6.9375 programmable general text optional 1001 vitc/ebu time codes (europe) 1.8125 programmable vitc625 1010 vitc/smpte time codes (usa) 1.7898 programmable vitc525 1011 5 programmable open 1100 us nabts 5.7272 programmable nabts optional 1101 moji (japanese) 5.7272 programmable (a7h) japtext 1110 japanese format switch (l20/22) 5 programmable open 1111 no sliced data transmitted (video data selected) 5 none disable 9.5 image port output formatter (subaddresses 84h to 87h) the output interface consists of a fifo for video and for sliced text data, an arbitration circuit, which controls the mixed transfer of video and sliced text data over the i port, and a decoding and multiplexing unit, which generates the 8 or 16-bit wide output data stream together with the accompanying reference and help information. the clock for the output interface can be derived from an internal clock, decoder, expansion port or an externally provided clock which is appropriate, for example, for the vga and frame buffer. the clock can be up to 33 mhz. the scaler provides the following video related timing reference events (signals), which are available on pins as defined by subaddresses 84h and 85h: output field id start and end of vertical active video range start and end of active video line data qualifier or gated clock actually activated programming page (if conlh is used) threshold controlled fifo filling flags (empty, full, filled) sliced data marker. the disconnected data stream at the scaler output is accompanied by a data valid flag (or data qualifier), or is transported via a gated clock. clock cycles with invalid data on the i port data bus (including the hpd pins in 16-bit output mode) are marked with code 00h. the output interface also arbitrates the transfer between scaled video data and sliced text data over the i port output. the bits vitx1 and vitx0 (subaddress 86h) are used to control the arbitration. the serialization of the internal 32-bit dwords to 8-bit or 16-bit output (optional), as well as the insertion of the extended itu 656 codes (sav/eav for video data, anc or sav/eav codes for sliced text data) are also done here. for handshaking with the vga controller, or other memory or bus interface circuitry, programmable fifo flags are provided; see section 9.5.2.
2004 jun 29 72 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.5.1 s caler output formatter ( subaddresses 93h and c3h) the output formatter organizes the packing into the output fifo. the following formats are available: y-c b -c r 4:2:2, y-c b -c r 4:1:1, y-c b -c r 4:2:0, y-c b -c r 4:1:0, y only (e.g. for raw samples). the formatting is controlled by fsi[2:0] 93h[2:0], foi[1:0] 93h[4:3] and fysk[93h[5]]. the data formats are defined on dwords, or multiples thereof, and are similar to the video formats as recommended for pci multimedia applications (see saa7146a). planar formats are not supported. fsi[2:0] defines the horizontal packing of the data, foi[1:0] defines how many y only lines are expected before a y/c line will be formatted. if fysk is set to logic 0 preceding y only lines will be skipped, and the output will always start with a y/c line. additionally the output formatter limits the amplitude range of the video data (controlled by illv[85h[5]]); see table 31. table 29 byte stream for different output formats table 30 explanation to table 29 table 31 limiting range on i port output format byte sequence for 8-bit output modes y- c b -c r 4:2:2 c b 0y0c r 0y1c b 2y2c r 2y3c b 4y4c r 4y5 c b 6y6 y- c b -c r 4:1:1 c b 0y0c r 0y1c b 4y2c r 4 y3y4 y5y6 y7 c b 8y8 y only y0 y1 y2 y3 y4 y5 y6 y7 y8 y9 y10 y11 y12 y13 name explanation c b nc b (b - y) colour difference component, pixel number n = 0, 2, 4 to 718 yn y (luminance) component, pixel number n = 0, 1, 2, 3 to 719 c r nc r (r - y) colour difference component, pixel number n = 0, 2, 4 to 718 limit step illv[85h[5]] valid range suppressed codes (hexadecimal value) decimal value hexadecimal value lower range upper range 0 1 to 254 01 to fe 00 ff 1 8 to 247 08 to f7 00 to 07 f8 to ff
2004 jun 29 73 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.5.2 v ideo fifo ( subaddress 86h) the video fifo at the scaler output contains 32 dwords. that corresponds to 64 pixels in 16-bit y-c b -c r 4:2:2 format. but as the entire scaler can act as a pipeline buffer, the actually available buffer capacity for the image port is much higher, and can exceed beyond a video line. the image port and the video fifo, can operate with the video source clock (synchronous mode) or with an externally provided clock (asynchronous, and burst mode), as appropriate for the vga controller or attached frame buffer. the video fifo provides 4 internal flags, which report to what extent the fifo is actually filled. these are: the fifo almost empty (fae) flag the fifo combined (fc) flag or fifo filled, which is set at almost full level and reset, with hysteresis, only after the level crosses below the almost empty mark the fifo almost full (faf) flag the fifo overflow (fovl) flag. the trigger levels for fae and faf are programmable by ffl[1:0] 86h[3:2] (16, 24, 28, full) and fel[1:0] 86h[1:0] (16, 8, 4, empty). the state of this flag can be seen on pins igp0 or igp1. the pin mapping is defined by subaddresses 84h and 85h; see section 10.5. 9.5.3 t ext fifo the data of the terminal vbi data slicer is collected in the text fifo before transmission over the i port is requested (normally before the video window starts) and partitioned into two fifo sections. a complete line is fed into the fifo before a data transfer is requested. so normally, one line of text data is ready for transfer while the next text line is collected. thus sliced text data is delivered as a block of qualified data, without any qualification gaps in the byte stream of the i port. the decoded vbi data is collected in the dedicated vbi data fifo. once the capture of a line is completed, the fifo can be streamed through the image port, preceded by a header, giving the line number and standard. the vbi data period can be signalled via the sliced data flag on pin igp0 or igp1. the decoded vbi data is lead by the itu ancillary data header (did[5:0] 5dh[5:0] at value <3eh) or by sav/eav codes selected by did[5:0] at value 3eh or 3fh. igp0 or igp1 is set if the first byte of the anc header is valid on the i port bus; it is reset if an sav occurs. therefore it may frame multiple lines of text data output, in case the video processing starts with a distance of several video lines to the region of text data. valid sliced data from the text fifo is available on the i port as long as the igp0 or igp1 flag is set and the data qualifier is active on pin idq. the decoded vbi data is presented in two different data formats, controlled by bit recode. recode = 1: values 00h and ffh will be recoded to even parity values 03h and fch recode = 0: values 00h and ffh may occur in the data stream as detected. 9.5.4 v ideo and text arbitration ( subaddress 86h) sliced text data and scaled video data are transferred over the same bus, the i port. the mixed transfer is controlled by an arbitration circuit. if the video data is transferred without any interrupt and the video fifo does not need to buffer any output pixel, the text data is inserted after the end of a scaled video line, normally during the video blanking interval.
2004 jun 29 74 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.5.5 d ata stream coding and reference signal generation ( subaddresses 84h, 85h and 93h) as horizontal and vertical reference signals are logic 1, active gate signals are generated, which frame the transfer of the valid output data. alternatively, the horizontal and vertical trigger pulses can be generated on the rising edges of the gates. due to the dynamic fifo behaviour of the complete scaler path, the output signal timing has no fixed timing relationship to the real-time input video stream. thus fixed propagation delays, in terms of clock cycles, related to the analog input can not be defined. the data stream is accompanied by a data qualifier. additionally invalid data cycles are marked with code 00h. if itu 656 like codes are not required, they can be suppressed in the output stream. as a further option, it is possible to provide the scaler with an external gating signal on pin itrdy. it is therefore possible to hold the data output for a certain time and to get valid output data in bursts of a guaranteed length. the sketched reference signals and events can be mapped to the i port output pins idq, igph, igpv, igp0 and igp1. the polarities of all the outputs can be modified to enable flexible use. the default polarity for the qualifier and reference signals is logic 1 (active). table 32 shows the relevant and supported sav and eav coding. table 32 sav/eav codes on the i port notes 1. the leading byte sequence is: ffh-00h-00h. 2. the msb of the sav/eav code byte is controlled by: a) scaler output data: task a t msb = conlh[90h[7]]; task b t msb = conlh[c0h[7]]. b) vbi data slicer output data: did[5:0] 5dh[5:0] = 3eh t msb = 1; did[5:0] 5dh[5:0] = 3fh t msb = 0. event description sav/eav codes on i port (1) (hex) comment msb (2) of sav/eav byte = 0 msb (2) of sav/eav byte = 1 field id = 0 field id = 1 field id = 0 field id = 1 next pixel is first pixel of any active line 0e 49 80 c7 href = active; vref = active previous pixel was last pixel of any active line, but not the last 13 54 9d da href = inactive; vref = active next pixel is first pixel of any v-blanking line 25 62 ab ec href = active; vref = inactive previous pixel was last pixel of the last active line or of any v-blanking line 38 7f b6 f1 href = inactive; vref = inactive no valid data, do not capture and do not increment pointer 00 idq pin inactive
2004 jun 29 75 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... table 33 explanation to fig.39 notes 1. inverted ep (bit 7); for ep see note 2. 2. even parity (bit 6) of bits 5 to 0. 3. odd parity (bit 7) of bits 6 to 0. name explanation sav start of active data; see table 34 sdid sliced data identi?cation: nep (1) , ep (2) , sdid5 to sdid0, freely programmable via i 2 c-bus subaddress 5eh, bits 5 to 0, e. g. to be used as source identi?er dc dword count: nep (1) , ep (2) , dc5 to dc0. dc describes the number of succeeding 32-bit words: for sav/eav mode dc is fixed to 11 dwords (byte value 4bh) for anc mode it is: dc = 1 4 (c + n), where c = 2 (the two data identification bytes idi1 and idi2) and n = number of decoded bytes according to the chosen text standard. note that the number of valid bytes inside the stream can be seen in the bc byte. idi1 internal data identi?cation 1: op (3) , fid (?eld 1 = 0, ?eld 2 = 1), linenumber8 to linenumber3 = dword 1 byte 1; see table 34 idi2 internal data identi?cation 2: op (3) , linenumber2 to linenumber0, datatype3 to datatype0 = dword 1 byte 2; see table 34 d n_m dword number n , byte number m d dc_4 last dword byte 4, note: for sav/eav framing dc is ?xed to 0bh, missing data bytes are ?lled up; the ?ll value is a0h cs the check sum byte, the check sum is accumulated from the sav (respectively did) byte to the d dc_4 byte bc number of valid sliced bytes counted from the idi1 byte eav end of active data; see table 34 mhb549 00 00 ff 00 00 sav sdid dc idi1 idi2 d 1_3 d 1_4 d 2_1 d dc_3 d dc_4 cs bc ff 00 00 eav 00 00 ... ... ... ... d 1_2 d 1_1 ... ff 00 00 eav 00 ff ff did sdid dc idi1 idi2 d 1_3 d 1_4 d dc_3 d dc_4 cs bc 00 00 ... anc header internal header sliced data anc data output is only filled up to the dword boundary timing reference code invalid data or end of raw vbi line timing reference code internal header sliced data invalid data and filling data fig.39 sliced data formats on the i port in 8-bit mode. anc header active for did (subaddress 5dh) <3eh
2004 jun 29 76 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 34 bytes stream of the data slicer notes 1. nep = inverted ep (see note 2). 2. ep = even parity of bits 5 to 0. 3. fid = 0: field 1; fid = 1: field 2. 4. i1 = 0 and i0 = 0: before line 1; i1 = 0 and i0 = 1: lines 1 to 23; i1 = 1 and i0 = 0: after line 23; i1 = 1 and i0 = 1: line 24 to end of field. 5. subaddress 5dh at 3eh and 3fh are used for itu 656 like sav/eav header generation; recommended value. 6. v = 0: active video; v = 1: blanking. 7. h = 0: start of line; h = 1: end of line. 8. dc = data count in dwords according to the data type. 9. op = odd parity of bits 6 to 0. 10. ln = line number. 11. dt = data type according to table. nick name comment bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 did, sav, eav subaddress 5dh = 00h nep (1) ep (2) 0 1 0 fid (3) i1 (4) i0 (4) subaddress 5dh; bit 5 = 1 nep ep 0 d4[5dh] d3[5dh] d2[5dh] d1[5dh] d0[5dh] subaddress 5dh bit 5 = 3eh; note 5 1 fid (3) v (6) h (7) p3 p2 p1 p0 subaddress 5dh bit 5 = 3fh; note 5 0 fid (3) v (6) h (7) p3 p2 p1 p0 sdid programmable via subaddress 5eh nep ep d5[5eh] d4[5eh] d3[5eh] d2[5eh] d1[5eh] d0[5eh] dc (8) nep ep (2) dc5 dc4 dc3 dc2 dc1 dc0 idi1 op (9) fid (3) ln8 (10) ln7 (10) ln6 (10) ln5 (10) ln4 (10) ln3 (10) idi2 op ln2 (10) ln1 (10) ln0 (10) dt3 (11) dt2 (11) dt1 (11) dt0 (11) cs check sum byte cs6 cs6 cs5 cs4 cs3 cs2 cs1 cs0 bc valid byte count op 0 cnt5 cnt4 cnt3 cnt2 cnt1 cnt0
2004 jun 29 77 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.6 audio clock generation (subaddresses 30h to 3fh) the SAA7108AE; saa7109ae incorporates the generation of a field-locked audio clock, as an auxiliary function for video capture. an audio sample clock, that is locked to the field frequency, ensures that there is always the same predefined number of audio samples associated with a field, or a set of fields. this ensures synchronous playback of audio and video after digital recording (e.g. capture to hard disk), mpeg or other compression or non-linear editing. 9.6.1 m aster audio clock the audio clock is synthesized from the same crystal frequency as the line-locked video clock is generated. the master audio clock is defined by the parameters: audio master clocks per field, acpf[17:0] 32h[1:0] 31h[7:0] 30h[7:0] according to the equation: audio master clocks nominal increment, acni[21:0] 36h[5:0] 35h[7:0] 34h[7:0] according to the equation: see table 35 for examples. remark : for standard applications the synthesized audio clock amclk can be used directly as master clock and as input clock for port amxclk (short cut) to generate asclk and alrclk. for high-end applications it is recommended to use an external analog pll circuit to enhance the performance of the generated audio clock. acpf[17:0] round audio frequency field frequency ------------------------------------------ ? ?? = acni[21:0] round audio frequency crystal frequency -------------------------------------------- - 2 23 ? ?? = table 35 programming examples for audio master clock generation crystal frequency (mhz) field (hz) acpf acni decimal hex decimal hex amclk = 256 48 khz (12.288 mhz) 32.11 50 245760 3c000 3210190 30fbce 59.94 205005 320cd 3210190 30fbce 24.576 50 ---- 59.94 ---- amclk = 256 44.1 khz (11.2896 mhz) 32.11 50 225792 37200 2949362 2d00f2 59.94 188348 2dfbc 2949362 2d00f2 24.576 50 225792 37200 3853517 3acccd 59.94 188348 2dfbc 3853 517 3acccd amclk = 256 32 khz (8.192 mhz) 32.11 50 163840 28000 2140127 20a7df 59.94 136670 215de 2140127 20a7df 24.576 50 163840 28000 2796203 2aaaab 59.94 136670 215de 2796203 2aaaab
2004 jun 29 78 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 9.6.2 s ignals asclk and alrclk two binary divided signals asclk and alrclk are provided for slower serial digital audio signal transmission and for channel-select. the frequencies of these signals are defined by the parameters: sdiv[5:0] 38h[5:0] according to the equation: t lrdiv[5:0] 39h[5:0] according to the equation: t see table 36 for examples. table 36 programming examples for asclk/alrclk clock generation 9.6.3 o ther control signals further control signals are available to define reference clock edges and vertical references; see table 37. table 37 control signals amxclk (mhz) asclk (khz) sdiv alrclk (khz) lrdiv decimal hex decimal hex 12.288 1536 3 03 48 16 10 768 7 07 8 08 11.2896 1411.2 3 03 44.1 16 10 2822.4 1 01 32 10 8.192 1024 3 03 32 16 10 2048 1 01 32 10 control signal description apll[3ah[3]] audio pll mode: 0: pll closed 1: pll open amvr[3ah[2]] audio master clock vertical reference: 0: internal vertical reference 1: external vertical reference lrph[3ah[1]] alrclk phase: 0: invert asclk, alrclk edges triggered by falling edge of asclk 1: do not invert asclk, alrclk edges triggered by rising edge of asclk scph[3ah[0]] asclk phase: 0: invert amxclk, asclk edges triggered by falling edge of amxclk 1: do not invert amxclk, asclk edges triggered by rising edge of amxclk f asclk f amxclk sdiv 1 + () 2 ------------------------------------- - = sdiv[5:0] f amxclk 2f asclk ------------------- - 1 C = f alrclk f asclk lrdiv 2 -------------------------- - = lrdiv[5:0] f asclk 2f alrclk ---------------------- - =
2004 jun 29 79 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 10 input/output interfaces and ports of digital video decoder part the SAA7108AE; saa7109ae has 5 different i/o interfaces. these are: analog video input interface, for analog cvbs and/or y and c input signals audio clock port digital real-time signal port (rt port) digital video expansion port (x port), for unscaled digital video input and output digital image port (i port) for scaled video data output and programming digital host port (h port) for extension of the image port or expansion port from 8 to 16-bit. 10.1 analog terminals the SAA7108AE; saa7109ae has 6 analog inputs ai21 to ai24, ai11 and ai12 (see table 38) for composite video cvbs or s-video y/c signal pairs. additionally, there are two differential reference inputs, which must be connected to ground via a capacitor equivalent to the decoupling capacitors at the 6 inputs. there are no peripheral components required other than the decoupling capacitors and 18 w /56 w termination resistors, one set per connected input signal (see also application example in fig.53). two anti-alias filters are integrated, and self adjusting via the clock frequency. clamp and gain control for the two adcs are also integrated. an analog video output pin (aout) is provided for testing purposes. table 38 analog pin description 10.2 audio clock signals the SAA7108AE; saa7109ae also synchronizes the audio clock and sampling rate to the video frame rate, via a very slow pll. this ensures that the multimedia capture and compression processes always gather the same predefined number of samples per video frame. an audio master clock amclk and two divided clocks, asclk and alrclk, are generated; see table 39. asclk: can be used as audio serial clock alrclk: audio left/right channel clock. the ratios are programmable; see section 9.6. table 39 audio clock pin description symbol pin i/o description bit ai24 to ai21 p6, p7, p9 and p10 i analog video signal inputs, e.g. 2 cvbs signals and two y/c pairs can be connected simultaneously mode3 to mode0 ai12 and ai11 p11 and p13 aout m10 o analog video output, for test purposes aosl1 and aosl0 ai1d and ai2d p12 and p8 i analog reference pins for differential adc operation - symbol pin i/o description bit amclk k12 o audio master clock output acpf[17:0] 32h[1:0] 31h[7:0] 30h[7:0] and acni[21:0] 36h[5:0] 35h[7:0] 34h[7:0] amxclk j12 i external audio master clock input for the clock division circuit, can be directly connected to output amclk for standard applications - asclk k14 o serial audio clock output, can be synchronized to rising or falling edge of amxclk sdiv[5:0] 38h[5:0] and scph[3ah[0]] alrclk j13 o audio channel (left/right) clock output, can be synchronized to rising or falling edge of asclk lrdiv[5:0] 39h[5:0] and lrph[3ah[1]]
2004 jun 29 80 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 10.3 clock and real-time synchronization signals a crystal accurate frequency reference is required for the generation of the line-locked video (pixel) clock llc, and the frame-locked audio serial bit clock. an oscillator is built-in, for fundamental or 3rd-harmonic crystals. the supported crystal frequencies are 32.11 or 24.576 mhz (defined during reset by strapping pin alrclk). alternatively pins xtalid and xtalie can be driven from an external single-ended oscillator. the crystal oscillation can be propagated as clock to other ics in the system via pin xtoutd. the line-locked clock (llc) is the double pixel clock at a nominal 27 mhz. it is locked to the selected video input, generating baseband video pixels according to itu recommendation 601 . in order to support interfacing circuits, a direct pixel clock llc2 is also provided. the pins for line and field timing reference signals are rtco, rts1 and rts0. various real-time status information can be selected for the rts pins. the signals are always available (output) and reflect the synchronization operation of the decoder part in the SAA7108AE; saa7109ae. the function of the rts1 and rts0 pins can be defined by bits rtse1[3:0] 12h[7:4] and rtse0[3:0] 12h[3:0]; see table 40. table 40 clock and real-time synchronization signals symbol pin i/o description bit crystal oscillator xtalid p2 i input for crystal oscillator, or reference clock - xtalod p3 o output of crystal oscillator - xtoutd p4 o reference (crystal) clock output drive (optional) xtoute[14h[3]] real-time signals (rt port) llc m14 o line-locked clock; nominal 27 mhz, double pixel clock locked to the selected video input signal - llc2 l14 o line-locked pixel clock; nominal 13.5 mhz - rtco l13 o real-time control output; transfers real-time status information supporting rtc level 3.1 (see external document rtc functional description , available on request) - rts0 k13 o real-time status information line 0; can be programmed to carry various real-time informations; see table 171 rtse0[3:0] 12h[3:0] rts1 l10 o real-time status information line 1; can be programmed to carry various real-time informations; see table 172 rtse1[3:0] 12h[7:4]
2004 jun 29 81 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 10.4 video expansion port (x port) the expansion port is intended for transporting video streams of image data from other digital video circuits such as mpeg encoder/decoder and video phone codec, to the image port (i port); see table 41. the expansion port consists of two groups of signals/pins: 8-bit data, i/o, regular video components y-c b -c r 4:2:2, i.e. c b -y-c r -y, byte serial, exceptionally raw video samples (e.g. adc test). in input mode the data bus can be extended to 16-bit by pins hpd7 to hpd0. clock, synchronization and auxiliary signals, accompanying the data stream, i/o. as output, these are direct copies of the decoder signals. the data transfers through the expansion port represent a single d1 port, with half duplex mode. the sav and eav codes may be inserted optionally for data input (controlled by bit xcode[92h[3]]). the input/output direction is switched for complete fields only. table 41 signals dedicated to the expansion port symbol pin i/o description bit xpd7 to xpd0 k2, k3, l1 to l3, m1, m2 and n1 i/o x port data: in output mode controlled by decoder section, for data format see table 42; in input mode y-c b -c r 4:2:2 ser ial input data or luminance part of a 16-bit y-c b -c r 4:2:2 input ofts[2:0] 13h[2:0], 91h[7:0] and c1h[7:0] xclk m3 i/o clock at expansion port: if output, then copy of llc; as input normally a double pixel clock of up to 32 mhz or a gated clock (clock gated with a quali?er) xcks[92h[0]] xdq m4 i/o data valid ?ag of the expansion port input (quali?er): if output, then decoder (href and vgate) gate (see fig.32) - xrdy n3 o data request ?ag = ready to receive, to work with optional buffer in external device, to prevent internal buffer over?ow; second function: input related task ?ag a/b xrqt[83h[2]] xrh n2 i/o horizontal reference signal for the x port: as output: href or hs from the decoder (see fig.32); as input: a reference edge for horizontal input timing and a polarity for input ?eld id detection can be de?ned xrhs[13h[6]], xfdh[92h[6]] and xdh[92h[2]] xrv l5 i/o vertical reference signal for the x port: as output: v123 or ?eld id from the decoder, see figs 30 and 31; as input: a reference edge for vertical input timing and for input ?eld id detection can be de?ned xrvs[1:0] 13h[5:4], xfdv[92h[7]] and xdv[1:0] 92h[5:4] xtri k1 i port control: switches x port input to 3-state xpe[1:0] 83h[1:0]
2004 jun 29 82 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 10.4.1 x port configured as output if the data output is enabled at the expansion port, then the data stream from the decoder is present. the data format of the 8-bit data bus is dependent on the chosen data type which is selectable by the line control registers lcr2 to lcr24; see table 17. in contrast to the image port, the sliced data format is not available on the expansion port. instead, raw cvbs samples are always transferred if any sliced data type is selected. details of some of the data types on the expansion port are as follows: active video : (data type 15) contains components y-c b -c r 4:2:2 signal, 720 active pixels per line. the amplitude and offsets are programmable via dbri7 to dbri0, dcon7 to dcon0, dsat7 to dsat0, offu1, offu0, offv1 and offv0. for nominal levels see fig.26. test line : (data type 6) is similar to the active video format, with some constraints within the data processing: C adaptive chrominance comb filter, vertical filter (chrominance comb filter for ntsc standards, pal phase error correction) within the chrominance processing are disabled C adaptive luminance comb filter, peaking and chrominance trap are bypassed within the luminance processing. this data type is defined for future enhancements. it can be activated for lines containing standard test signals within the vertical blanking period. currently most sources do not contain test lines. for nominal levels see fig.26. raw samples (data types 0 to 5 and 7 to 14): c b -c r samples are similar to data type 6, but cvbs samples are transferred instead of processed luminance samples within the y time slots. the amplitude and offset of the cvbs signal is programmable via rawg7 to rawg0 and rawo7 to rawo0, see chapter 18, tables 178 and 179. for nominal levels see fig.27. the relationship of lcr programming to line numbers is described in section 9.2; see tables 18 to 21. the data type selections by lcr are overruled by setting ofts2 = 1 (subaddress 13h bit 2). this setting is mainly intended for device production testing. the vpo-bus carries the upper or lower 8 bits of the two adcs depending on the ofts[1:0] 13h[1:0] settings; see table 173. the output configuration is done via mode[3:0] 02h[3:0] settings; see table 155. if a y/c mode is selected, the expansion port carries the multiplexed output signals of both adcs, in cvbs mode the output of only one adc. no timing reference codes are generated in this mode. remark : the lsbs (bit 0) of the adcs are also available on pin rts0; see table 171. the sav/eav timing reference codes define the start and end of valid data regions. the itu-blanking code sequence - 80 - 10 - 80 - 10 -... is transmitted during the horizontal blanking period, between eav and sav. the position of the f bit is constant according to itu 656; see tables 44 and 45. the v bit can be generated in two different ways (see tables 44 and 45) controlled via ofts1 and ofts0; see table 173. f and v bits change synchronously with the eav code. table 42 data format on the expansion port notes 1. the generation of the timing reference codes can be suppressed by setting ofts[2:0] to 010; see table 173. in this event the code sequence is replaced by the standard - 80 - 10 - blanking values. 2. if raw samples or sliced data are selected by the line control registers (lcr2 to lcr24), the y samples are replaced by cvbs samples. blanking period timing reference code (hex) (1) 720 pixels y-c b -c r 4:2:2 data (2) timing reference code (hex) (1) blanking period ... 80 10 ff 00 00 sav c b 0y0c r 0y1c b 2 y2 ... c r 718 y719 ff 00 00 eav 80 10 ...
2004 jun 29 83 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 43 sav/eav format on expansion port xpd7 to xpd0 table 44 525 lines/60 hz vertical timing table 45 625 lines/50 hz vertical timing bit 7 bit 6 (f) bit 5 (v) bit 4 (h) bit 3 (p3) bit 2 (p2) bit 1 (p1) bit 0 (p0) 1 ?eld bit vertical blanking bit format reserved; evaluation not recommended (protection bits according to itu 656) 1st field: f = 0 2nd field: f = 1 vbi: v = 1 active video: v = 0 h = 0 in sav format h = 1 in eav format for vertical timing see tables 44 and 45 line number f (itu 656) v ofts[2:0] = 000 (itu 656) ofts[2:0] = 001 1 to 3 1 1 according to selected vgate position type via vsta and vsto (subaddresses 15h to 17h); see tables 175 to 177 4to19 0 1 20 0 0 21 0 0 22 to 261 0 0 262 0 0 263 0 0 264 and 265 0 1 266 to 282 1 1 283 1 0 284 1 0 285 to 524 1 0 525 1 0 line number f (itu 656) v ofts[2:0] = 000 (itu 656) ofts[1:0] = 10 1 to 22 0 1 according to selected vgate position type via vsta and vsto (subaddresses 15h to 17h); see tables 175 to 177 23 0 0 24 to 309 0 0 310 0 0 311 and 312 0 1 313 to 335 1 1 336 1 0 337 to 622 1 0 623 1 0 624 and 625 1 1
2004 jun 29 84 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 10.4.2 x port configured as input if data input mode is selected at the expansion port, then the scaler can choose its input data stream from the on-chip video decoder, or from the expansion port (controlled by bit scsrc[1:0] 91h[5:4]). byte serial y-c b -c r 4:2:2,or subsets for other sampling schemes, or raw samples from an external adc may be input (see also bits fsc[2:0] 91h[2:0]). the input data stream must be accompanied by an external clock xclk, qualifier xdq and reference signals xrh and xrv. instead of the reference signal, embedded sav and eav codes, according to itu 656, can also be accepted. the protection bits are not evaluated. xrh and xrv carry the horizontal and vertical synchronization signals for the digital video stream through the expansion port. the field id of the input video stream is carried in the phase (edge) of xrv and state of xrh, or directly as fs (frame sync, odd/even signal) on the xrv pin (controlled by xfdv[92h[7]], xfdh[92h[6]] and xdv[1:0] 92h[5:4]). the trigger events on xrh (rising/falling edge) and xrv (rising/falling both edges) for the scalers acquisition window are defined by xdv[1:0] 92h[5:4] and xdh[92h[2]]. the signal polarity of the qualifier can also be defined by bit xdq[92h[1]]. as an alternative to the qualifier, the input clock can be applied to a gated clock (clock gated with a data qualifier, controlled by bit xcks[92h[0]]). in this event, all input data will be qualified. 10.5 image port (i port) the image port transfers data from the scaler as well as from the vbi data slicer, if selected (maximum 33 mhz). the reference clock is available at the iclk pin as an output or as an input (maximum 33 mhz). as an output, the iclk is derived from the line-locked decoder or expansion port input clock. the data stream from the scaler output is normally discontinuous. therefore valid data during a clock cycle is accompanied by a data qualifying (data valid) flag on pin idq. for pin constrained applications the idq pin can be programmed to function as a gated clock output (bit icks2[80h[2]]). the data formats at the image port are defined in dwords of 32 bits (4 bytes), such as the related fifo structures. however, the physical data stream at the image port is only 16-bit or 8-bit wide; in 16-bit mode data pins hpd7 to hpd0 are used for chrominance data. the four bytes of the dwords are serialized in words or bytes. the available formats are as follows: y-c b -c r 4:2:2 y-c b -c r 4:1:1 raw samples decoded vbi data. for handshaking with the receiving vga controller, or other memory or bus interface circuitry, f, h and v reference signals and programmable fifo flags are provided. the information is provided on pins igp0, igp1, igph and igpv. the function on these pins is controlled via subaddresses 84h and 85h. vbi data is collected over an entire line in its own fifo and transferred as an uninterrupted block of bytes. decoded vbi data can be signed by the vbi flag on pins igp0 and igp1. because scaled video data and decoded vbi data may come from different and asynchronous sources, an arbitration scheme is needed. normally the vbi data slicer has priority. the image port consists of the pins and/or signals, as given in table 46. for pin constrained applications, or interfaces, the relevant timing and data reference signals can also be encoded into the data stream. therefore the corresponding pins do not need to be connected. the minimum image port configuration requires 9 pins only, i.e. 8 pins for data including codes, and 1 pin for clock or gated clock. the inserted codes are defined in close relationship to the itu-r bt.656 (d1) recommendation, where possible.
2004 jun 29 85 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae the following deviations from itu 656 recommendation are implemented at the SAA7108AE; saa7109aes image port interface: sav and eav codes are only present in those lines, where data is to be transferred, i.e. active video lines, or vbi raw samples, no codes for empty lines there may be more or less than 720 pixels between sav and eav the data content and number of clock cycles during horizontal and vertical blanking is undefined, and may be not constant the data stream may be interleaved with not-valid data codes, 00h, but sav and eav 4-byte codes are not interleaved with not-valid data codes there may be an irregular pattern of not-valid data, or idq, and as a result, c b -y-c r - y - is not in a fixed phase to a regular clock divider vbi raw sample streams are enveloped with sav and eav, like normal video decoded vbi data is transported as ancillary (anc) data, two modes: C direct decoded vbi data bytes (8-bit) are directly placed in the anc data field, 00h and ffh codes may appear in the data block (violation to itu-r bt.656) C recoded vbi data bytes (8-bit) directly placed in anc data field, 00h and ffh codes will be recoded to even parity codes 03h and fch to suppress invalid itu-r bt.656 codes. there are no empty cycles in the ancillary code or its data field. the data codes 00h and ffh are suppressed (changed to 01h or feh respectively) in the active video stream, as well as in the vbi raw sample stream (vbi pass-through). as an option the number range can be limited further. table 46 signals dedicated to the image port symbol pin i/o description bit ipd7 to ipd0 e14, d14, c14, b14, e13, d13, c13 and b13 i/o i port data icode[93h[7]], iswp[1:0] 85h[7:6] and ipe[1:0] 87h[1:0] iclk h12 i/o continuous reference clock at image port, can be input or output, as output decoder llc or xclk from x port icks[1:0] 80h[1:0] and ipe[1:0] 87h[1:0] idq h14 o data valid ?ag at image port, quali?er, with programmable polarity; secondary function: gated clock icks2[80h[2]], idqp[85h[0]] and ipe[1:0] 87h[1:0] igph g12 o horizontal reference output signal, copy of the horizontal gate signal of the scaler, with programmable polarity; alternative function: hreset pulse idh[1:0] 84h[1:0], irhp[85h[1]] and ipe[1:0] 87h[1:0] igpv f13 o vertical reference output signal, copy of the vertical gate signal of the scaler, with programmable polarity; alternative function: vreset pulse idv[1:0] 84h[3:2], irvp[85h[2]] and ipe[1:0] 87h[1:0] igp1 g13 o general purpose output signal for i port idg12[86h[4]], idg1[1:0] 84h[5:4], ig1p[85h[3]] and ipe[1:0] 87h[1:0] igp0 f14 o general purpose output signal for i port idg02[86h[5]], idg0[1:0] 84h[7:6], ig0p[85h[4]] and ipe[1:0] 87h[1:0] itrdy j14 i target ready input signals - itri g14 i port control, switches i port into 3-state ipe[1:0] 87h[1:0]
2004 jun 29 86 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 10.6 host port for 16-bit extension of video data i/o (h port) the h port, pins hpd, can be used to extend the data i/o paths to 16-bit. the i port has functional priority. if i8_16[93h[6]] is set to logic 1 the output drivers of the h port are enabled and are dependent on the i port enable control. when i8_16 = 0, the hpd output is disabled. table 47 signals dedicated to the host port symbol pin i/o description bit hpd7 to hpd0 a13, d12, c12, b12, a12, c11, b11 and a11 i/o 16-bit extension for digital i/o (chrominance component) ipe[1:0] 87h[1:0], itri[8fh[6]] and i8_16[93h[6]] 10.7 basic input and output timing diagrams for the i and x ports 10.7.1 i port output timing the following diagrams (figs 40 to 46) illustrate the output timing via the i port. igph and igpv are indicated as logic 1 active gate signals. if reference pulses are programmed, these pulses are generated on the rising edge of the logic 1 active gates. valid data is accompanied by the output data qualifier on pin idq. in addition, invalid cycles are marked with output code 00h. the idq output pin may be defined to be a gated clock output signal (iclk and internal idq). 10.7.2 x port input timing the input timing requirements at the x port are the same as those for the i port output. however, the following differences should be noted: it is not necessary to mark invalid cycles with a 00h code no constraints on the input qualifier (can be a random pattern) xclk may by a gated clock (xclk and external xdq). remark : all timings illustrated are given for an uninterrupted output stream (no handshake with the external hardware). ipd [ 7:0 ] igph idq iclk 00 ff 00 00 sav 00 c b y c r y00 c b y c r y00 mhb550 fig.40 output timing at the i port for serial 8-bit data at start of a line (icode = 1).
2004 jun 29 87 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae ipd [ 7:0 ] igph idq iclk 00 c b y c r y00 c b y c r y00 mhb551 fig.41 output timing at the i port for serial 8-bit data at start of a line (icode = 0). ipd [ 7:0 ] igph idq iclk 00 c b y c r y00 c b y c r y00ff0000eav00 mhb552 fig.42 output timing at the i port for serial 8-bit data at end of a line (icode = 1).
2004 jun 29 88 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae ipd [ 7:0 ] igph idq iclk 00 c b y c r y00 c b y c r y00 mhb553 fig.43 output timing at the i port for serial 8-bit data at end of a line (icode = 0). ipd [ 7:0 ] hpd [ 7:0 ] igph idq iclk 00 ff 00 00 y0 y1 00 y2 y3 y n - 1 y n 00 ff 00 00 mhb554 00 00 sav 00 00 c b c b c r c r c r c b 00 00 eav 00 fig.44 output timing for 16-bit data output via the i and h port with codes (icode = 1), timing is like 8-bit output, but packages of 2 bytes per valid cycle.
2004 jun 29 89 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth igpv igph idq mhb555 fig.45 horizontal and vertical gate output timing. handbook, full pagewidth mhb733 ipd [ 7:0 ] hpd [ 7:0 ] sliced data flag on igp0 or igp1 idq iclk 00 00 ff ff did sdid xx yy zz cs bc 00 00 00 00 ff 00 sav 00 00 00 bc ff eav fig.46 output timing for sliced vbi data in 8-bit serial output mode (dotted graphs for sav/eav mode).
2004 jun 29 90 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 11 boundary scan test the SAA7108AE; saa7109ae has built-in logic and 2 times 5 dedicated pins to support boundary scan testing, separately for the encoder and decoder part, which allows board testing without special hardware (nails). the SAA7108AE; saa7109ae follows the ieee std. 1149.1 - standard test access port and boundary-scan architecture set by the joint test action group (jtag) chaired by philips. the 10 special pins are test mode select (tmse and tmsd), test clock (tcke and tckd), test reset ( trste and trstd), test data input (tdie and tdid) and test data output (tdoe and tdod), where extension e refers to the encoder part and extension d refers to the decoder part. the boundary scan test (bst) functions bypass, extest, intest, sample, clamp and idcode are all supported; see table 48. details about the jtag bst-test can be found in the specification ieee std. 1149.1 . two files containing the detailed boundary scan description language (bsdl) of the SAA7108AE; saa7109ae are available on request. table 48 bst instructions supported by the SAA7108AE; saa7109ae instruction description bypass this mandatory instruction provides a minimum length serial path (1 bit) between tdie (or tdid) and tdoe (or tdod) when no test operation of the component is required. extest this mandatory instruction allows testing of off-chip circuitry and board level interconnections. sample this mandatory instruction can be used to take a sample of the inputs during normal operation of the component. it can also be used to preload data values into the latched outputs of the boundary scan register. clamp this optional instruction is useful for testing when not all ics have bst. this instruction addresses the bypass register while the boundary scan register is in external test mode. idcode this optional instruction will provide information on the components manufacturer, part number and version number. intest this optional instruction allows testing of the internal logic (no support for customers available). user1 this private instruction allows testing by the manufacturer (no support for customers available). 11.1 initialization of boundary scan circuit the test access port (tap) controller of an ic should be in the reset state (test_logic_reset) when the ic is in functional mode. this reset state also forces the instruction register into a functional instruction such as idcode or bypass. to solve the power-up reset, the standard specifies that the tap controller will be forced asynchronously to the test_logic_reset state by setting the trste or trstd pin low. 11.2 device identi?cation codes a device identification register is specified in ieee std. 1149.1b-1994 . it is a 32-bit register which contains fields for the specification of the ic manufacturer, the ic part number and the ic version number. its biggest advantage is the possibility to check for the correct ics mounted after production and to determine the version number of the ics during field service. when the idcode instruction is loaded into the bst instruction register, the identification register will be connected between tdie (or tdid) and tdoe (or tdod) of the ic. the identification register will load a component specific code during the capture_data_register state of the tap controller, this code can subsequently be shifted out. at board level this code can be used to verify component manufacturer, type and version number. the device identification register contains 32 bits, numbered 31 to 0, where bit 31 is the most significant bit (nearest to tdie or tdid) and bit 0 is the least significant bit (nearest to tdoe or tdod); see fig.47.
2004 jun 29 91 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth 00000 010101 0111000100000100 (0111000100010100) nnnn 4-bit version code 16-bit part number 11-bit manufacturer identification tdie (or tdid) tdoe (or tdod) 31 msb lsb 28 27 12 11 1 0 1 mbl786 handbook, full pagewidth 00000 010101 0111000100000101 (0111000100010100) nnnn 4-bit version code 16-bit part number 11-bit manufacturer identification tdie (or tdid) tdoe (or tdod) 31 msb lsb 28 27 12 11 1 0 1 mbl787 fig.47 32 bits of identification code. b. saa7109ae. a. SAA7108AE. 12 limiting values in accordance with the absolute maximum rating system (iec 60134); all ground pins connected together and grounded (0 v); all supply pins connected together. notes 1. condition for maximum voltage at digital inputs or i/o pins: 3.0 v < v ddd < 3.6 v. 2. class 2 according to eia/jesd22-114-b. 3. class a according to eia/jesd22-115-a. symbol parameter conditions min. max. unit v ddd digital supply voltage - 0.5 +4.6 v v dda analog supply voltage - 0.5 +4.6 v v i(a) input voltage at analog inputs - 0.5 +4.6 v v i(n) input voltage at pins xtali, sda and scl - 0.5 v ddd + 0.5 v v i(d) input voltage at digital inputs or i/o pins outputs in 3-state - 0.5 +4.6 v outputs in 3-state; note 1 - 0.5 +5.5 v d v ss voltage difference between v ssa(n) and v ssd(n) - 100 mv t stg storage temperature - 65 +150 c t amb ambient temperature 0 70 c v esd electrostatic discharge voltage human body model; note 2 - 2000 v machine model; note 3 - 150 v
2004 jun 29 92 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 13 thermal characteristics note 1. the overall r th(j-a) value can vary depending on the board layout. to minimize the effective r th(j-a) all power and ground pins must be connected to the power and ground layers directly. an ample copper area direct under the SAA7108AE; saa7109ae with a number of through-hole plating, which connect to the ground layer (four-layer board: second layer), can also reduce the effective r th(j-a) . please do not use any solder-stop varnish under the chip. in addition the usage of soldering glue with a high thermal conductance after curing is recommended. 14 characteristics of the digital video encoder part t amb = 0 to 70 c (typical values measured at t amb =25 c); unless otherwise speci?ed. symbol parameter conditions value unit r th(j-a) thermal resistance from junction to ambient in free air 32 (1) k/w symbol parameter conditions min. typ. max. unit supplies v dda analog supply voltage 3.15 3.3 3.45 v v ddie digital supply voltage 3.15 3.3 3.45 v v dd(dvo) digital supply voltage (dvo) 1.045 1.1 1.155 v 1.425 1.5 1.575 v 1.71 1.8 1.89 v 2.375 2.5 2.625 v 3.135 3.3 3.465 v i dda analog supply current note 1 1 110 115 ma i ddd digital supply current note 2 1 175 200 ma inputs v il low-level input voltage v dd(dvo) = 1.1 v, 1.5 v, 1.8 v or 2.5 v; note 3 - 0.1 - +0.2 v v dd(dvo) = 3.3 v; note 3 - 0.5 - +0.8 v pins rese, tmse, tcke, trst e and tdie - 0.5 - +0.8 v v ih high-level input voltage v dd(dvo) = 1.1 v, 1.5 v, 1.8 v or 2.5 v; note 3 v dd(dvo) - 0.2 - v dd(dvo) + 0.1 v v dd(dvo) = 3.3 v; note 3 2 - v dd(dvo) + 0.3 v pins rese, tmse, tcke, trst e and tdie 2 - v ddie + 0.3 v i li input leakage current -- 10 m a c i input capacitance clocks -- 10 pf data -- 10 pf i/os at high-impedance -- 10 pf
2004 jun 29 93 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae outputs v ol low-level output voltage v dd(dvo) = 1.1 v, 1.5 v, 1.8 v or 2.5 v; note 3 0 - 0.1 v v dd(dvo) = 3.3 v; note 3 0 - 0.4 v pins tdoe, ttxrq_xclko2, vsm and hsm_csync 0 - 0.4 v v oh high-level output voltage v dd(dvo) = 1.1 v, 1.5 v, 1.8 v or 2.5 v; note 3 v dd(dvo) - 0.1 - v dd(dvo) v v dd(dvo) = 3.3 v; note 3 2.4 - v dd(dvo) v pins tdoe, ttxrq_xclko2, vsm and hsm_csync 2.4 - v ddie v i 2 c-bus; pins sdae and scle v il low-level input voltage - 0.5 - 0.3v ddie v v ih high-level input voltage 0.7v ddie - v ddie + 0.3 v i i input current v i = low or high - 10 - +10 m a v ol low-level output voltage (pin sdae) i ol =3ma -- 0.4 v i o output current during acknowledge 3 -- ma clock timing; pins pixclki and pixclko t pixclk cycle time note 4 12 -- ns t d(clkd) delay from pixclko to pixclki note 5 --- ns d duty factor t high /t pixclk note 4 40 50 60 % duty factor t high /t clko2 output 40 50 60 % t r rise time note 4 -- 1.5 ns t f fall time note 4 -- 1.5 ns input timing t su;dat input data set-up time pins pd11 to pd0 2 -- ns t hd;dat input data hold time pins pd11 to pd0 0.9 -- ns t su;dat input data set-up time pins hsvgc, vsvgc and fsvgc; note 6 2 -- ns t hd;dat input data hold time pins hsvgc, vsvgc and fsvgc; note 6 1.5 -- ns crystal oscillator f nom nominal frequency - 27 - mhz d f/f nom permissible deviation of nominal frequency note 7 - 50 - +50 10 - 6 symbol parameter conditions min. typ. max. unit
2004 jun 29 94 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae c rystal specification t amb ambient temperature 0 - 70 c c l load capacitance 8 -- pf r s series resistance -- 80 w c 1 motional capacitance (typical) 1.2 1.5 1.8 ff c 0 parallel capacitance (typical) 2.8 3.5 4.2 pf data and reference signal output timing c l output load capacitance 8 - 40 pf t o(h)(gfx) output hold time to graphics controller pins hsvgc, vsvgc, fsvgc and cbo 1.5 -- ns t o(d)(gfx) output delay time to graphics controller pins hsvgc, vsvgc, fsvgc and cbo -- 10 ns t o(h) output hold time pins tdoe, ttxrq_xclko2, vsm and hsm_csync 3 -- ns t o(d) output delay time pins tdoe, ttxrq_xclko2, vsm and hsm_csync -- 25 ns cvbs and rgb outputs v o(cvbs)(p-p) output voltage cvbs (peak-to-peak value) see table 49 - 1.23 - v v o(vbs)(p-p) output voltage vbs (s-video) (peak-to-peak value) see table 49 - 1 - v v o(c)(p-p) output voltage c (s-video) (peak-to-peak value) see table 49 - 0.89 - v v o(rgb)(p-p) output voltage r, g, b (peak-to-peak value) see table 49 - 0.7 - v d v o inequality of output signal voltages - 2 - % r l output load resistance - 37.5 -w b dac output signal bandwidth of dacs - 3 db; note 8 - 170 - mhz ile lf(dac) low frequency integral linearity error of dacs -- 3 lsb dle lf(dac) low frequency differential linearity error of dacs -- 1 lsb symbol parameter conditions min. typ. max. unit
2004 jun 29 95 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae notes 1. minimum value for i 2 c-bus bit downa = 1. 2. minimum value for i 2 c-bus bit downd = 1. 3. levels refer to pins pd11 to pd0, fsvgc, pixclki, vsvgc, pixclko, cbo, tvd, and hsvgc, being inputs or outputs directly connected to a graphics controller. input sensitivity is 1 / 2 v dd(dvo) + 100 mv for high and 1 / 2 v dd(dvo) - 100 mv for low. the reference voltage 1 / 2 v dd(dvo) is generated on chip. 4. the data is for both input and output direction. 5. this parameter is arbitrary, if pixclki is looped through the vgc. 6. tested with programming ifbp = 1. 7. if an internal oscillator is used, crystal deviation of nominal frequency is directly proportional to the deviation of subcarrier frequency and line/field frequency. 8. with c ext = 20 pf (typical). 15 characteristics of the digital video decoder part v ddd = 3.0 to 3.6 v; v dda = 3.1 to 3.5 v; t amb = 0 to 70 c (typical values measured at t amb =25 c); timings and levels refer to drawings and conditions illustrated in fig.52; unless otherwise speci?ed. symbol parameter conditions min. typ. max. unit supplies v ddd digital supply voltage 3.15 3.3 3.45 v i ddd digital supply current x port 3-state; 8-bit i port - 90 - ma p d power dissipation digital part - 300 - mw v dda analog supply voltage 3.15 3.3 3.45 v i dda analog supply current aosl1 and aosl0 = 0 cvbs mode - 47 - ma y/c mode - 72 - ma p a power dissipation analog part cvbs mode - 150 - mw y/c mode - 240 - mw p tot(a+d) total power dissipation analog and digital part cvbs mode - 450 - mw y/c mode - 540 - mw p tot(a+d)(pd) total power dissipation analog and digital part in power-down mode ce pulled down to ground - 5 - mw p tot(a+d)(ps) total power dissipation analog and digital part in power-save mode i 2 c-bus controlled via address 88h = 0fh - 75 - mw analog part i clamp clamping current v i = 0.9 v dc - 8 -m a b 3db C 1 2 p r o(l) c ext 5 pf + () () ---------------------------------------------------------- - =
2004 jun 29 96 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae v i(p-p) input voltage (peak-to-peak value) for normal video levels 1 v (p-p), - 3db termination 27/47 w and ac coupling required; coupling capacitor = 22 nf - 0.7 - v ? z i ? input impedance clamping current off 200 -- k w c i input capacitance -- 10 pf a cs channel crosstalk f i < 5 mhz --- 50 db 9-bit analog-to-digital converters b analog bandwidth at - 3db - 7 - mhz f diff differential phase (ampli?er plus anti-alias ?lter bypassed) - 2 - deg g diff differential gain (ampli?er plus anti-alias ?lter bypassed) - 2 - % f clk(adc) adc clock frequency 12.8 - 14.3 mhz dle dc(d) dc differential linearity error - 0.7 - lsb ile dc(i) dc integral linearity error - 1 - lsb digital inputs v il(sdad,scld) low-level input voltage pins sdad and scld - 0.5 - +0.3v ddd v v ih(sdad,scld) high-level input voltage pins sdad and scld 0.7v ddd - v ddd + 0.5 v v il(xtalid) low-level cmos input voltage pin xtalid - 0.3 - +0.8 v v ih(xtalid) high-level cmos input voltage pin xtalid 2.0 - v ddd + 0.3 v v il(n) low-level input voltage all other inputs - 0.3 - +0.8 v v ih(n) high-level input voltage all other inputs 2.0 - 5.5 v i li input leakage current -- 1 m a i li/o i/o leakage current -- 10 m a c i input capacitance i/o at high-impedance -- 8pf digital outputs; note 1 v ol(sdad) low-level output voltage pin sdad sdad at 3 ma sink current -- 0.4 v v ol(clk) low-level output voltage for clocks - 0.5 - +0.6 v v oh(clk) high-level output voltage for clocks 2.4 - v ddd + 0.5 v symbol parameter conditions min. typ. max. unit
2004 jun 29 97 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae v ol low-level output voltage all other digital outputs 0 - 0.4 v v oh high-level output voltage all other digital outputs 2.4 - v ddd + 0.5 v clock output timing (llc and llc2); note 2 c l(llc) output load capacitance 15 - 50 pf t cy cycle time pin llc 35 - 39 ns pin llc2 70 - 78 ns d duty factors for t llch /t llc and t llc2h /t llc2 c l =40pf 40 - 60 % t r rise time llc and llc2 0.2 v to v ddd - 0.2 v -- 5ns t f fall time llc and llc2 v ddd - 0.2 v to 0.2 v -- 5ns t d(llc-llc2) delay time between llc and llc2 output measured at 1.5 v; c l =25pf - 4 - +8 ns horizontal pll f h(nom) nominal line frequency 50 hz ?eld - 15625 - hz 60 hz ?eld - 15734 - hz d f h /f h(nom) permissible static deviation -- 5.7 % subcarrier pll f sc(nom) nominal subcarrier frequency pal bghi - 4433619 - hz ntsc m - 3579545 - hz pa l m - 3575612 - hz pa l n - 3582056 - hz d f sc lock-in range 400 -- hz crystal oscillator for 32.11 mhz; note 3 f xtal(nom) nominal frequency 3rd-harmonic - 32.11 - mhz d f xtal(nom) permissible nominal frequency deviation -- 70 10 - 6 d f xtal(nom)(t) permissible nominal frequency deviation with temperature -- 30 10 - 6 c rystal specification (x1) t amb(x1) ambient temperature 0 - 70 c c l load capacitance 8 -- pf r s series resonance resistor - 40 80 w c 1 motional capacitance - 1.5 20 % - ff c 0 parallel capacitance - 4.3 20 % - pf crystal oscillator for 24.576 mhz; note 3 f xtal(nom) nominal frequency 3rd-harmonic - 24.576 - mhz d f xtal(nom) permissible nominal frequency deviation -- 50 10 - 6 symbol parameter conditions min. typ. max. unit
2004 jun 29 98 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae d f xtal(nom)(t) permissible nominal frequency deviation with temperature -- 20 10 - 6 c rystal specification (x1) t amb(x1) ambient temperature 0 - 70 c c l load capacitance 8 -- pf r s series resonance resistor - 40 80 w c 1 motional capacitance - 1.5 20 % - ff c 0 parallel capacitance - 3.5 20 % - pf clock input timing (xclk) t cy cycle time 31 - 45 ns d duty factors for t llch /t llc 40 50 60 % t r rise time -- 5ns t f fall time -- 5ns data and control signal input timing x port, related to xclk input t su;dat input data set-up time - 10 - ns t hd;dat input data hold time - 3 - ns clock output timing c l output load capacitance 15 - 50 pf t cy cycle time 35 - 39 ns d duty factors for t xclkh /t xclkl 35 - 65 % t r rise time 0.6 to 2.6 v -- 5ns t f fall time 2.6 to 0.6 v -- 5ns data and control signal output timing x port, related to xclk output (for xpck[1:0] 83h[5:4] = 00 is default); note 2 c l output load capacitance 15 - 50 pf t ohd;dat output hold time c l =15pf - 14 - ns t pd propagation delay from positive edge of xclk output c l =15pf - 24 - ns control signal output timing rt port, related to llc output c l output load capacitance 15 - 50 pf t ohd;dat output hold time c l =15pf - 14 - ns t pd propagation delay from positive edge of llc output c l =15pf - 24 - ns iclk output timing c l output load capacitance 15 - 50 pf t cy cycle time 31 - 45 ns d duty factors for t iclkh /t iclkl 35 - 65 % symbol parameter conditions min. typ. max. unit
2004 jun 29 99 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae notes 1. the levels must be measured with load circuits; 1.2 k w at 3 v (ttl load); c l = 50 pf. 2. the effects of rise and fall times are included in the calculation of t ohd;dat and t pd . timings and levels refer to drawings and conditions illustrated in fig.52. 3. the crystal oscillator drive level is 0.28 mw (typ.). 16 timing 16.1 digital video encoder part t r rise time 0.6 to 2.6 v -- 5ns t f fall time 2.6 to 0.6 v -- 5ns data and control signal output timing i port, related to iclk output (for ipck[1:0] 87h[5:4] = 00 is default) c l output load capacitance at all outputs 15 - 50 pf t ohd;dat output data hold time c l =15pf - 12 - ns t o(d) output delay time c l =15pf - 22 - ns iclk input timing t cy cycle time 31 - 100 ns symbol parameter conditions min. typ. max. unit handbook, full pagewidth pixclko pixclki pdn any output t d(clkd) t high t f t r v oh 0.5v dd(dvo) v ol t hd;dat t hd;dat t o(h) t o(d) t su;dat t su;dat t pixclk mbl789 v ih 0.5v dd(dvo) v il v oh v ol v ih v il fig.48 input/output timing specification.
2004 jun 29 100 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth hsvgc pd cbo xofs idel xpix hlen mhb905 fig.49 horizontal input timing. handbook, full pagewidth hsvgc vsvgc cbo yofs ypix mhb906 fig.50 vertical input timing.
2004 jun 29 101 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 16.1.1 t eletext timing time t fd is the time needed to interpolate input data ttx and insert it into the cvbs and vbs output signal, such that it appears at t ttx = 9.78 m s (pal) or t ttx = 10.5 m s (ntsc) after the leading edge of the horizontal synchronization pulse. time t pd is the pipeline delay time introduced by the source that is gated by ttxrq_xclko2 in order to deliver ttx data. this delay is programmable by register ttxhd. for every active high state at output pin ttxrq_xclko2, a new teletext bit must be provided by the source. since the beginning of the pulses representing the ttxrq signal and the delay between the rising edge of ttxrq and valid teletext input data are fully programmable (ttxhs and ttxhd), the ttx data is always inserted at the correct position after the leading edge of the outgoing horizontal synchronization pulse. time t i(ttxw) is the internally used insertion window for ttx data; it has a constant length that allows insertion of 360 teletext bits at a text data rate of 6.9375 mbits/s (pal), 296 teletext bits at a text data rate of 5.7272 mbits/s (world standard ttx) or 288 teletext bits at a text data rate of 5.7272 mbits/s (nabts). the insertion window is not opened if the control bit ttxen is zero. using appropriate programming, all suitable lines of the odd field (ttxovs and ttxove) plus all suitable lines of the even field (ttxevs and ttxeve) can be used for teletext insertion. it is essential to note that the two pins used for teletext insertion must be configured for this purpose by the correct i 2 c-bus register settings . handbook, full pagewidth t i(ttxw) t ttx t pd t fd cvbs/y ttx_sres ttxrq_xclko2 text bit #: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 mhb891 fig.51 teletext timing.
2004 jun 29 102 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 16.2 digital video decoder part handbook, full pagewidth mhb735 t xclkh t r t r t f t hd;dat t su;dat t su;dat t hd;dat t cy t x(i)clkh t x(i)clkl t f clock input xclk data and control inputs (x port) data and control outputs x port, i port clock outputs llc, llc2, xclk, iclk and iclk input input xdq 2.4 v 1.5 v 0.6 v - 2.6 v - 1.5 v - 0.6 v 2.0 v 0.8 v t ohd;dat t o(d) - 2.4 v - 0.6 v 2.0 v 0.8 v not valid fig.52 data input/output timing diagram (x port, rt port and i port).
2004 jun 29 103 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 17 application information handbook, full pagewidth mbl790 y1 24.576 mhz SAA7108AE saa7109ae l3 m1 m2 n1 k2 k3 l1 l2 xpd3 xpd2 xpd1 xpd0 xpd7 xpd [ 0:7 ] xpd6 xpd5 xpd4 xpd3 xpd2 xpd1 xpd0 xpd7 xpd6 xpd5 xpd4 a12 c11 b11 a11 a13 d12 c12 b12 hpd3 hpd2 hpd1 hpd0 hpd7 hpd [ 0:7 ] hpd6 hpd5 hpd4 e13 d13 c13 b13 e14 d14 c14 b14 ipd3 ipd2 ipd1 ipd0 ipd7 ipd [ 0:7 ] ipd6 ipd5 ipd4 hpd3 hpd2 hpd1 hpd0 hpd7 hpd6 hpd5 hpd4 ipd3 ipd2 ipd1 ipd0 ipd7 ipd6 ipd5 ipd4 f14 h12 h14 j14 g14 f13 g12 g13 ipcon3 ipcon2 ipcon1 ipcon0 ipcon7 ipcon [ 0:7 ] ipcon6 ipcon5 ipcon4 j12 j13 k14 l14 test5 v dd (id11) v dd (if11) v dd (ij4) v dd (ij11) v dd (il4) v dd (il11) v dd (xl8) v dd (el9) v dd (el7) v dd (eg11) v dd (ed10) v dd (am9) v dd (am8) v dd (an11) r38 33 w r37 33 w open 3pad r49 0 w 4.7 k w m14 m12 j2 test4 j1 test3 j3 test2 c10 test1 b10 test0 test5 test4 test3 test2 test1 test0 h13 n13 n12 n10 n9 n8 n7 m7 h4 h11 l6 m13 e11 k4 k11 p5 v ssad v ssad v ssad v ssad v ssad v ssed v ssed v ssed v ssed v ssid v ssid v ssid v ssxd v ssad agnd n11 m9 m8 d10 g11 l7 l9 d11 f11 j4 j11 l11 l4 l8 e12 f12 v ddad v ddad v ddad v dded v dded v dded v dded v ddid v ddid v ddid v ddid v ddid v ddid v ddxd n.c. tvd xtout c104 10 pf c103 10 pf c107 1 nf l34 10 m h p4 p3 p2 k12 audio3 audio2 audio1 audio0 audio [ 0:3 ] l13 k13 l10 rcon0 rcon1 rcon2 rcon [ 0:2 ] m5 m6 n4 bsc0 bsc1 bsc2 bsc [ 0:2 ] res llc open r47 n14 n6 tdi_d tdo_d n5 v ddp jp45 ce_dec. dgnd 24.576 mhz 32.11 mhz r12 dgnd v ddp jp43 fxtal audio2 'strapping' dxgnd r26 56 w r25 56 w r24 56 w r23 56 w r22 56 w r21 56 w 18 w c100 47 nf r19 p6 ai24 18 w c97 47 nf r17 p7 ai23 18 w c98 47 nf r16 p9 ai22 18 w c99 47 nf r18 p10 ai21 c109 47 nf p8 18 w c101 47 nf r15 p11 ai12 18 w c102 47 nf r20 p13 ai11 0 w r29 m10 aout ai24 ai23 ai22 ai21 ai2d ai12 ai11 ai1d aout c110 47 nf p12 agnd dgnd agnd agnd dgnd llc2 r27 0 w l12 r28 0 w m11 scl sda n2 m3 m4 n3 k1 l5 amxclk alrclk asclk llc2 llc resd xtoutd xtalod xtalid amclk rtco rts0 rts1 tmsd tclkd trstd ce tdid tdod sdad scld xrh xclk xdq xrdy xtri xrv igp0 iclk idq itrdy igph igp1 itri igpv xpcon3 xpcon2 xpcon1 xpcon0 xpcon [ 0:5 ] xpcon5 xpcon4 v dd (am8) v dd (am9) v dd (an11) v dd (eg11) v dd (el9) v dd (el7) v dd (ed10) v dd (ij4) v dd (id11) v dd (if11) v dd (ij11) v dd (il11) v dd (il4) v dd (xl8) c61 100 nf c58 100 nf c57 100 nf c59 100 nf c56 100 nf c60 100 nf c50 100 nf c49 100 nf c51 100 nf c48 100 nf c52 100 nf c54 100 nf c53 100 nf c55 100 nf dxgnd dgnd agnd open ferrite l36 dgnd agnd 4.7 k w i 2 c-bus_adr:40h/42h r13 dgnd v ddp jp44 rcon0 'strapping' fig.53 application circuit (decoder part).
2004 jun 29 104 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... handbook, full pagewidth mbl784 fltr0 agnd + 3.3 v digital dgnd dgnd agnd use one capacitor for each v ddae and v ddxe 1 nf 10 pf 27 mhz 10 pf 0.1 m h 0.1 m f 0.1 m f 0.1 m f + 3.3 v analog a5 f4 c5, d5, e4 a8 b8 a9 d4 v dd(dvo) v ddiee a6 a10, b6, b9, c9, d9 and d6 xtalie xtaloe v ddae and v ddxe 75 w 75 w agnd agnd agnd green_vbs_cvbs hsm_csync fltr1 75 w 75 w agnd agnd agnd red_cr_c_cvbs fltr2 75 w 75 w 12 w 1 k w agnd dgnd agnd agnd agnd agnd agnd agnd blue_cb_cvbs vsm dump dump rset v ssae v ssxe v ssie a7 b7 c6 c8 c7 d8 d7 SAA7108AE saa7109ae digital inputs and outputs u y u c u cvbs fig.54 application circuit (encoder part).
2004 jun 29 105 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, halfpage mhb912 2.7 m h 120 pf c16 jp11 jp12 fin fout c10 390 pf c13 560 pf l2 2.7 m h l3 filter 1 = byp. ll act. agnd fig.55 fltr0, fltr1 and fltr2 as shown in fig.54.
2004 jun 29 106 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth mbl796 10 pf 10 pf 32.11 mhz SAA7108AE saa7109ae p2 xtalid xtalod p3 33 pf 33 pf 32.11 mhz 15 pf 1 nf 4.7 m h 15 pf 32.11 mhz SAA7108AE saa7109ae SAA7108AE saa7109ae p2 xtalid xtalod p3 p2 xtalid xtalod p3 handbook, full pagewidth mbl795 15 pf 15 pf 24.576 mhz SAA7108AE saa7109ae p2 xtalid xtalod p3 39 pf 39 pf 24.576 mhz 18 pf 1 nf 4.7 m h 18 pf 24.576 mhz SAA7108AE saa7109ae SAA7108AE saa7109ae p2 xtalid xtalod p3 p2 xtalid xtalod p3 mbl794 r s n.c. clock 32.11 mhz or 24.576 mhz SAA7108AE saa7109ae SAA7108AE saa7109ae p2 xtalid xtalod p3 p2 xtalid xtalod p3 fig.56 oscillator application for decoder part. (1a) with 3rd-harmonic quartz. crystal load = 8 pf. (1b) with fundamental quartz. crystal load = 20 pf. (1c) with fundamental quartz. crystal load = 8 pf (2a) with 3rd-harmonic quartz. crystal load = 8 pf. (2b) with fundamental quartz. crystal load = 20 pf. (2c) with fundamental quartz. crystal load = 8 pf. (3a) with direct clock. (3b) with fundamental quartz and restricted drive level. when p drive of the internal oscillator is too high, a resistance r s can be placed in series with the oscillator output xtalod. note: the decreased crystal amplitude results in a lower drive level but on the other hand the jitter performance will decrease.
2004 jun 29 107 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae handbook, full pagewidth mbl792 39 pf 39 pf 27.00 mhz 18 pf 1 nf 4.7 m h 18 pf 27.00 mhz SAA7108AE saa7109ae SAA7108AE saa7109ae a5 xtalie xtaloe a6 a5 xtalie xtaloe a6 handbook, full pagewidth mbl793 r s n.c. clock 27.00 mhz SAA7108AE saa7109ae SAA7108AE saa7109ae a5 xtalie xtaloe a6 a5 xtalie xtaloe a6 fig.57 oscillator application for encoder part. (1a) with 3rd-harmonic quartz. crystal load = 8 pf. (1b) with fundamental quartz. crystal load = 20 pf. (2a) with direct clock. (2b) with fundamental quartz and restricted drive level. when p drive of the internal oscillator is too high, a resistance r s can be placed in series with the oscillator output xtaloe. note: the decreased crystal amplitude results in a lower drive level but on the other hand the jitter performance will decrease.
2004 jun 29 108 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 17.1 reconstruction ?lter figure 55 shows a possible reconstruction filter for the digital-to-analog converters. due to its cut-off frequency of ~ 6 mhz, it is not suitable for hdtv applications. 17.2 analog output voltages the analog output voltages are dependent on the total load (typical value 37.5 w ), the digital gain parameters and the i 2 c-bus settings of the dac reference currents (analog settings). the digital output signals in front of the dacs under nominal (nominal here stands for the settings given in tables 75 to 82 for example a standard pal or ntsc signal) conditions occupy different conversion ranges, as indicated in table 49 for a 100 100 colour bar signal. by setting the reference currents of the dacs as shown in table 49, standard compliant amplitudes can be achieved for all signal combinations; it is assumed that in subaddress 16h, parameter dacf = 0000b, that means the fine adjustment for all dacs in common is set to 0 %. if s-video output is desired, the adjustment for the c (chrominance subcarrier) output should be identical to the one for vbs (luminance plus sync) output. table 49 digital output signals conversion range set/out cvbs, sync tip-to-white vbs, sync tip-to-white rgb, black-to-white digital settings see tables 75 to 82 see tables 75 to 82 see table 70 digital output 1014 881 876 analog settings e.g. b dac = 1fh e.g. g dac = 1bh e.g. r dac = g dac = b dac = 0bh analog output 1.23 v (p-p) 1.00 v (p-p) 0.70 v (p-p) 17.3 suggestions for a board layout use separate ground planes for analog and digital ground. connect these planes only at one point directly under the device, by using a 0 w resistor directly at the supply stage. use separate supply lines for the analog and digital supply. place the supply decoupling capacitors close to the supply pins. use l bead (ferrite coil) in each digital supply line close to the decoupling capacitors to minimize radiation energy (emc). place the analog coupling (clamp) capacitors close to the analog input pins. place the analog termination resistors close to the coupling capacitors. be careful of hidden layout capacitors around the crystal application. use serial resistors in clock, sync and data lines, to avoid clock or data reflection effects and to soften data energy. the SAA7108AE; saa7109ae crystal temperature depends on the pcb it is soldered on. for normal airflow conditions at a maximum ambient temperature of 70 cit will be sufficient to provide: pcb dimensions at least 2000 mm 2 pcb at least 4 layers at least 50 vias (connecting pcb layers) close to the chip metal coverage at least 60 % on at least 2 pcb layers near the chip.
2004 jun 29 109 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... 18 i 2 c-bus description 18.1 digital video encoder part table 50 slave receiver bit allocation map (slave address 88h) register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0 status byte (read only) 00 ver2 ver1 ver0 ccrdo ccrde (1) fseq o_e null 01 to 15 (1) (1) (1) (1) (1) (1) (1) (1) common dac adjust ?ne 16 (1) (1) (1) (1) dacf3 dacf2 dacf1 dacf0 r dac adjust coarse 17 (1) (1) (1) rdacc4 rdacc3 rdacc2 rdacc1 rdacc0 g dac adjust coarse 18 (1) (1) (1) gdacc4 gdacc3 gdacc2 gdacc1 gdacc0 b dac adjust coarse 19 (1) (1) (1) bdacc4 bdacc3 bdacc2 bdacc1 bdacc0 msm threshold 1a msmt7 msmt6 msmt5 msmt4 msmt3 msmt2 msmt1 msmt0 monitor sense mode 1b msm msa msoe (1) (1) rcomp gcomp bcomp chip id (02b or 03b, read only) 1c cid7 cid6 cid5 cid4 cid3 cid2 cid1 cid0 wide screen signal 26 wss7 wss6 wss5 wss4 wss3 wss2 wss1 wss0 wide screen signal 27 wsson (1) wss13 wss12 wss11 wss10 wss9 wss8 real-time control, burst start 28 (1) (1) bs5 bs4 bs3 bs2 bs1 bs0 sync reset enable, burst end 29 sres (1) be5 be4 be3 be2 be1 be0 copy generation 0 2a cg07 cg06 cg05 cg04 cg03 cg02 cg01 cg00 copy generation 1 2b cg15 cg14 cg13 cg12 cg11 cg10 cg09 cg08 cg enable, copy generation 2 2c cgen (1) (1) (1) cg19 cg18 cg17 cg16 output port control 2d vbsen cvbsen1 cvbsen0 cen encoff clk2en cvbsen2 (1) null 2e to 36 (1) (1) (1) (1) (1) (1) (1) (1) input path control 37 (1) yupsc yfil1 yfil0 (1) czoom igain xint gain luminance for rgb 38 (1) (1) (1) gy4 gy3 gy2 gy1 gy0 gain colour difference for rgb 39 (1) (1) (1) gcd4 gcd3 gcd2 gcd1 gcd0 input port control 1 3a cbenb (1) syntv symp demoff csync y2c uv2c vps enable, input control 2 54 vpsen (1) gpval gpen (1) (1) edge slot vps byte 5 55 vps57 vps56 vps55 vps54 vps53 vps52 vps51 vps50 vps byte 11 56 vps117 vps116 vps115 vps114 vps113 vps112 vps111 vps110 vps byte 12 57 vps127 vps126 vps125 vps124 vps123 vps122 vps121 vps120 vps byte 13 58 vps137 vps136 vps135 vps134 vps133 vps132 vps131 vps130 vps byte 14 59 vps147 vps146 vps145 vps144 vps143 vps142 vps141 vps140
2004 jun 29 110 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... chrominance phase 5a chps7 chps6 chps5 chps4 chps3 chps2 chps1 chps0 gain u 5b gainu7 gainu6 gainu5 gainu4 gainu3 gainu2 gainu1 gainu0 gain v 5c gainv7 gainv6 gainv5 gainv4 gainv3 gainv2 gainv1 gainv0 gain u msb, black level 5d gainu8 (1) blckl5 blckl4 blckl3 blckl2 blckl1 blckl0 gain v msb, blanking level 5e gainv8 (1) blnnl5 blnnl4 blnnl3 blnnl2 blnnl1 blnnl0 ccr, blanking level vbi 5f ccrs1 ccrs0 blnvb5 blnvb4 blnvb3 blnvb2 blnvb1 blnvb0 null 60 (1) (1) (1) (1) (1) (1) (1) (1) standard control 61 downd downa inpi ygs (1) scbw pal fise burst amplitude 62 rtce bsta6 bsta5 bsta4 bsta3 bsta2 bsta1 bsta0 subcarrier 0 63 fsc07 fsc06 fsc05 fsc04 fsc03 fsc02 fsc01 fsc00 subcarrier 1 64 fsc15 fsc14 fsc13 fsc12 fsc11 fsc10 fsc09 fsc08 subcarrier 2 65 fsc23 fsc22 fsc21 fsc20 fsc19 fsc18 fsc17 fsc16 subcarrier 3 66 fsc31 fsc30 fsc29 fsc28 fsc27 fsc26 fsc25 fsc24 line 21 odd 0 67 l21o07 l21o06 l21o05 l21o04 l21o03 l21o02 l21o01 l21o00 line 21 odd 1 68 l21o17 l21o16 l21o15 l21o14 l21o13 l21o12 l21o11 l21o10 line 21 even 0 69 l21e07 l21e06 l21e05 l21e04 l21e03 l21e02 l21e01 l21e00 line 21 even 1 6a l21e17 l21e16 l21e15 l21e14 l21e13 l21e12 l21e11 l21e10 null 6b (1) (1) (1) (1) (1) (1) (1) (1) trigger control 6c htrig7 htrig6 htrig5 htrig4 htrig3 htrig2 htrig1 htrig0 trigger control 6d htrig10 htrig9 htrig8 vtrig4 vtrig3 vtrig2 vtrig1 vtrig0 multi control 6e nvtrig blckon phres1 phres0 ldel1 ldel0 flc1 flc0 closed caption, teletext enable 6f ccen1 ccen0 ttxen sccln4 sccln3 sccln2 sccln1 sccln0 active display window horizontal start 70 adwhs7 adwhs6 adwhs5 adwhs4 adwhs3 adwhs2 adwhs1 adwhs0 active display window horizontal end 71 adwhe7 adwhe6 adwhe5 adwhe4 adwhe3 adwhe2 adwhe1 adwhe0 msbs adwh 72 (1) adwhe10 adwhe9 adwhe8 (1) adwhs10 adwhs9 adwhs8 ttx request horizontal start 73 ttxhs7 ttxhs6 ttxhs5 ttxhs4 ttxhs3 ttxhs2 ttxhs1 ttxhs0 ttx request horizontal delay 74 (1) (1) (1) (1) ttxhd3 ttxhd2 ttxhd1 ttxhd0 csync advance 75 csynca4 csynca3 csynca2 csynca1 csynca0 (1) (1) (1) ttx odd request vertical start 76 ttxovs7 ttxovs6 ttxovs5 ttxovs4 ttxovs3 ttxovs2 ttxovs1 ttxovs0 ttx odd request vertical end 77 ttxove7 ttxove6 ttxove5 ttxove4 ttxove3 ttxove2 ttxove1 ttxove0 register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 111 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... ttx even request vertical start 78 ttxevs7 ttxevs6 ttxevs5 ttxevs4 ttxevs3 ttxevs2 ttxevs1 ttxevs0 ttx even request vertical end 79 ttxeve7 ttxeve6 ttxeve5 ttxeve4 ttxeve3 ttxeve2 ttxeve1 ttxeve0 first active line 7a fal7 fal6 fal5 fal4 fal3 fal2 fal1 fal0 last active line 7b lal7 lal6 lal5 lal4 lal3 lal2 lal1 lal0 ttx mode, msb vertical 7c ttx60 lal8 ttxo fal8 ttxeve8 ttxove8 ttxevs8 ttxovs8 null 7d (1) (1) (1) (1) (1) (1) (1) (1) disable ttx line 7e line12 line11 line10 line9 line8 line7 line6 line5 disable ttx line 7f line20 line19 line18 line17 line16 line15 line14 line13 fifo status (read only) 80 (1) (1) (1) (1) iferr bferr ovfl udfl pixel clock 0 81 pcl07 pcl06 pcl05 pcl04 pcl03 pcl02 pcl01 pcl00 pixel clock 1 82 pcl15 pcl14 pcl13 pcl12 pcl11 pcl10 pcl09 pcl08 pixel clock 2 83 pcl23 pcl22 pcl21 pcl20 pcl19 pcl18 pcl17 pcl16 pixel clock control 84 dclk pclsy ifra ifbp pcle1 pcle0 pcli1 pcli0 fifo control 85 eidiv (1) (1) (1) fili3 fili2 fili1 fili0 null 86 to 8f (1) (1) (1) (1) (1) (1) (1) (1) horizontal offset 90 xofs7 xofs6 xofs5 xofs4 xofs3 xofs2 xofs1 xofs0 pixel number 91 xpix7 xpix6 xpix5 xpix4 xpix3 xpix2 xpix1 xpix0 vertical offset odd 92 yofso7 yofso6 yofso5 yofso4 yofso3 yofso2 yofso1 yofso0 vertical offset even 93 yofse7 yofse6 yofse5 yofse4 yofse3 yofse2 yofse1 yofse0 msbs 94 yofse9 yofse8 yofso9 yofso8 xpix9 xpix8 xofs9 xofs8 line number 95 ypix7 ypix6 ypix5 ypix4 ypix3 ypix2 ypix1 ypix0 scaler ctrl, mcb ypix 96 efs pcbn slave ilc yfil (1) ypix9 ypix8 sync control 97 hfs vfs ofs pfs ovs pvs ohs phs line length 98 hlen7 hlen6 hlen5 hlen4 hlen3 hlen2 hlen1 hlen0 input delay, msb line length 99 idel3 idel2 idel1 idel0 hlen11 hlen10 hlen9 hlen8 horizontal increment 9a xinc7 xinc6 xinc5 xinc4 xinc3 xinc2 xinc1 xinc0 vertical increment 9b yinc7 yinc6 yinc5 yinc4 yinc3 yinc2 yinc1 yinc0 msbs vertical and horizontal increment 9c yinc11 yinc10 yinc9 yinc8 xinc11 xinc10 xinc9 xinc8 weighting factor odd 9d yiwgto7 yiwgto6 yiwgto5 yiwgto4 yiwgto3 yiwgto2 yiwgto1 yiwgto0 weighting factor even 9e yiwgte7 yiwgte6 yiwgte5 yiwgte4 yiwgte3 yiwgte2 yiwgte1 yiwgte0 weighting factor msb 9f yiwgte11 yiwgte10 yiwgte9 yiwgte8 yiwgto11 yiwgto10 yiwgto9 yiwgto8 register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 112 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... vertical line skip a0 yskip7 yskip6 yskip5 yskip4 yskip3 yskip2 yskip1 yskip0 blank enable for ni-bypass, vertical line skip msb a1 blen (1) (1) (1) yskip11 yskip10 yskip9 yskip8 border colour y a2 bcy7 bcy6 bcy5 bcy4 bcy3 bcy2 bcy1 bcy0 border colour u a3 bcu7 bcu6 bcu5 bcu4 bcu3 bcu2 bcu1 bcu0 border colour v a4 bcv7 bcv6 bcv5 bcv4 bcv3 bcv2 bcv1 bcv0 hd sync line count array d0 ram address (see table 123) hd sync line type array d1 ram address (see table 125) hd sync line pattern array d2 ram address (see table 127) hd sync value array d3 ram address (see table 129) hd sync trigger state 1 d4 hlct7 hlct6 hlct5 hlct4 hlct3 hlct2 hlct1 hlct0 hd sync trigger state 2 d5 hlcpt3 hlcpt2 hlcpt1 hlcpt0 hlppt1 hlppt0 hlct9 hlct8 hd sync trigger state 3 d6 hdct7 hdct6 hdct5 hdct4 hdct3 hdct2 hdct1 hdct0 hd sync trigger state 4 d7 (1) hept2 hept1 hept0 (1) (1) hdct9 hdct8 hd sync trigger phase x d8 htx7 htx6 htx5 htx4 htx3 htx2 htx1 htx0 d9 (1) (1) (1) (1) htx11 htx10 htx9 htx8 hd sync trigger phase y da hty7 hty6 hty5 hty4 hty3 hty2 hty1 hty0 db (1) (1) (1) (1) (1) (1) hty9 hty8 hd output control dc (1) (1) (1) (1) hdsye hdtc hdgy hdip cursor colour 1 r f0 cc1r7 cc1r6 cc1r5 cc1r4 cc1r3 cc1r2 cc1r1 cc1r0 cursor colour 1 g f1 cc1g7 cc1g6 cc1g5 cc1g4 cc1g3 cc1g2 cc1g1 cc1g0 cursor colour 1 b f2 cc1b7 cc1b6 cc1b5 cc1b4 cc1b3 cc1b2 cc1b1 cc1b0 cursor colour 2 r f3 cc2r7 cc2r6 cc2r5 cc2r4 cc2r3 cc2r2 cc2r1 cc2r0 cursor colour 2 g f4 cc2g7 cc2g6 cc2g5 cc2g4 cc2g3 cc2g2 cc2g1 cc2g0 cursor colour 2 b f5 cc2b7 cc2b6 cc2b5 cc2b4 cc2b3 cc2b2 cc2b1 cc2b0 auxiliary cursor colour r f6 auxr7 auxr6 auxr5 auxr4 auxr3 auxr2 auxr1 auxr0 auxiliary cursor colour g f7 auxg7 auxg6 auxg5 auxg4 auxg3 auxg2 auxg1 auxg0 auxiliary cursor colour b f8 auxb7 auxb6 auxb5 auxb4 auxb3 auxb2 auxb1 auxb0 horizontal cursor position f9 xcp7 xcp6 xcp5 xcp4 xcp3 xcp2 xcp1 xcp0 horizontal hot spot, msb xcp fa xhs4 xhs3 xhs2 xhs1 xhs0 xcp10 xcp9 xcp8 vertical cursor position fb ycp7 ycp6 ycp5 ycp4 ycp3 ycp2 ycp1 ycp0 vertical hot spot, msb ycp fc yhs4 yhs3 yhs2 yhs1 yhs0 (1) ycp9 ycp8 register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 113 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... note 1. all unused control bits must be programmed with logic 0 to ensure compatibility to future enhancements. input path control fd lutoff cmode lutl if2 if1 if0 matoff dfoff cursor bit map fe ram address (see table 144) colour look-up table ff ram address (see table 145) register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 114 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.1.1 i 2 c- bus format table 51 i 2 c-bus write access to control registers; see table 57 table 52 i 2 c-bus write access to the hd line count array (subaddress d0h); see table 57 table 53 i 2 c-bus write access to cursor bit map (subaddress feh); see table 57 table 54 i 2 c-bus write access to colour look-up table (subaddress ffh); see table 57 table 55 i 2 c-bus read access to control registers; see table 57 table 56 i 2 c-bus read access to cursor bit map or colour lut; see table 57 table 57 explanations of tables 51 to 56 notes 1. x is the read/write control bit; x = logic 0 is order to write; x = logic 1 is order to read. 2. if more than 1 byte of data is transmitted, then auto-increment of the subaddress is performed. s 10001000 a subaddress a data 0 a -------- data n a p s 10001000 a d0h a ram address a data 00 a data 01 a -------- data n a p s 10001000 a feh a ram address a data 0 a -------- data n a p s 10001000 a ffh a ram address a data 0r a data 0g a data 0b a -------- p s 10001000 a subaddress a sr 1 0 001001 a data0 am -------- data n am p s 10001000 a feh or ffh a ram address a sr 1 0 001001 a data0 am -------- data n am p code description s start condition sr repeated start condition 1000100x; note 1 slave address a acknowledge generated by the slave am acknowledge generated by the master subaddress; note 2 subaddress byte data data byte -------- continued data bytes and acknowledges p stop condition ram address start address for ram access
2004 jun 29 115 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.1.2 s lave receiver table 58 subaddress 16h table 59 fine adjustment of dac output voltage table 60 subaddresses 17h to 19h table 61 subaddress 1ah data byte description dacf output level adjustment ?ne in 1 % steps for all dacs; default after reset is 00h; see table 59 binary gain (%) 0111 7 0110 6 0101 5 0100 4 0011 3 0010 2 0001 1 0000 0 1000 0 1001 - 1 1010 - 2 1011 - 3 1100 - 4 1101 - 5 1110 - 6 1111 - 7 data byte description rdacc output level coarse adjustment for red dac; default after reset is 1bh for output of c signal 00000b o 0.585 v to 11111b o 1.240 v at 37.5 w nominal for full-scale conversion gdacc output level coarse adjustment for green dac; default after reset is 1bh for output of vbs signal 00000b o 0.585 v to 11111b o 1.240 v at 37.5 w nominal for full-scale conversion bdacc output level coarse adjustment for blue dac; default after reset is 1fh for output of cvbs signal 00000b o 0.585 v to 11111b o 1.240 v at 37.5 w nominal for full-scale conversion data byte description msmt monitor sense mode threshold for dac output voltage, should be set to 70
2004 jun 29 116 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 62 subaddress 1bh table 63 subaddresses 26h and 27h table 64 subaddress 28h data byte logic level description msm 0 monitor sense mode off; rcomp, gcomp and bcomp bits are not valid; default after reset 1 monitor sense mode on msa 0 automatic monitor sense mode off; rcomp, gcomp and bcomp bits are not valid; default after reset 1 automatic monitor sense mode on if msm = 0 msoe 0 pin tvd is active 1 pin tvd is 3-state; default after reset rcomp (read only) 0 check comparator at dac on pin red_cr_c_cvbs is active, output is loaded 1 check comparator at dac on pin red_cr_c_cvbs is inactive, output is not loaded gcomp (read only) 0 check comparator at dac on pin green_vbs_cvbs is active, output is loaded 1 check comparator at dac on pin green_vbs_cvbs is inactive, output is not loaded bcomp (read only) 0 check comparator at dac on pin blue_cb_cvbs is active, output is loaded 1 check comparator at dac on pin blue_cb_cvbs is inactive, output is not loaded data byte logic level description wss - wide screen signalling bits 3 to 0 = aspect ratio 7 to 4 = enhanced services 10 to 8 = subtitles 13 to 11 = reserved wsson 0 wide screen signalling output is disabled; default after reset 1 wide screen signalling output is enabled data byte logic level description remarks bs - starting point of burst in clock cycles pal: bs = 33 (21h); default after reset if strapping pin fsvgc tied to high ntsc: bs = 25 (19h); default after reset if strapping pin fsvgc tied to low
2004 jun 29 117 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 65 subaddress 29h table 66 subaddresses 2ah to 2ch table 67 subaddress 2dh data byte logic level description remarks sres 0 pin ttx_sres accepts a teletext bit stream (ttx) default after reset 1 pin ttx_sres accepts a sync reset input (sres) a high impulse resets synchronization of the encoder (?rst ?eld, ?rst line) be - ending point of burst in clock cycles pal: be = 29 (1dh); default after reset if strapping pin fsvgc tied to high ntsc: be = 29 (1dh); default after reset if strapping pin fsvgc tied to low data byte logic level description cg - lsb of the respective bytes are encoded immediately after run-in, the msbs of the respective bytes have to carry the crcc bits, in accordance with the de?nition of copy generation management system encoding format. cgen 0 copy generation data output is disabled; default after reset 1 copy generation data output is enabled data byte logic level description vbsen 0 pin green_vbs_cvbs provides a component green signal (cvbsen1 = 0) or cvbs signal (cvbsen1 = 1) 1 pin green_vbs_cvbs provides a luminance (vbs) signal; default after reset cvbsen1 0 pin green_vbs_cvbs provides a component green (g) or luminance (vbs) signal; default after reset 1 pin green_vbs_cvbs provides a cvbs signal cvbsen0 0 pin blue_cb_cvbs provides a component blue (b) or colour difference blue (c b ) signal 1 pin blue_cb_cvbs provides a cvbs signal; default after reset cen 0 pin red_cr_c_cvbs provides a component red (r) or colour difference red (c r ) signal 1 pin red_cr_c_cvbs provides a chrominance signal (c) as modulated subcarrier for s-video; default after reset encoff 0 encoder is active; default after reset 1 encoder bypass, dacs are provided with rgb signal after cursor insertion block clk2en 0 pin ttxrq_xclko2 provides a teletext request signal (ttxrq) 1 pin ttxrq_xclko2 provides the buffered crystal clock divided by two (13.5 mhz); default after reset cvbsen2 0 pin red_cr_c_cvbs provides a signal according to cen; default after reset 1 pin red_cr_c_cvbs provides a cvbs signal
2004 jun 29 118 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 68 subaddress 37h table 69 logic levels and function of yfil table 70 subaddresses 38h and 39h table 71 subaddress 3ah data byte logic level description yupsc 0 normal operation of the vertical scaler; default after reset 1 vertical upscaling is enabled yfil - controls the vertical interpolation ?lter, see table 69; the ?lter is not available if yupsc = 1 czoom 0 normal operation of the cursor generator; default after reset 1 the cursor will be zoomed by a factor of 2 in both directions igain 0 expected input level swing is 16 to 235 (8-bit rgb); default after reset 1 expected input level swing is 0 to 255 (8-bit rgb) xint 0 no horizontal interpolation ?lter; default after reset 1 interpolation ?lter for horizontal upscaling is active data byte description yfil1 yfil0 0 0 no ?lter active; default after reset 0 1 ?lter is inserted before vertical scaling 1 0 ?lter is inserted after vertical scaling; yskip should be logic 0 1 1 reserved data byte description gy4 to gy0 gain luminance of rgb (c r , y and c b ) output, ranging from (1 - 16 32 )to(1+ 15 32 ). suggested nominal value = 0, depending on external application. gcd4 to gcd0 gain colour difference of rgb (c r , y and c b ) output, ranging from (1 - 16 32 )to(1+ 15 32 ). suggested nominal value = 0, depending on external application. data byte logic level description cbenb 0 data from input ports is encoded 1 colour bar with ?xed colours is encoded syntv 0 in slave mode, the encoder is only synchronized at the beginning of an odd ?eld; default after reset 1 in slave mode, the encoder receives a vertical sync signal symp 0 horizontal and vertical trigger is taken from fsvgc or both vsvgc and hsvgc; default after reset 1 horizontal and vertical trigger is decoded out of itu-r bt.656 compatible data at pd port
2004 jun 29 119 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 72 subaddress 54h table 73 subaddresses 55h to 59h demoff 0 y-c b -c r to rgb dematrix is active; default after reset 1y-c b -c r to rgb dematrix is bypassed csync 0 pin hsm_csync provides a horizontal sync for non-interlaced vga components output (at pixclk) 1 pin hsm_csync provides a composite sync for interlaced components output (at xtal clock) y2c 0 input luminance data is twos complement from pd input port 1 input luminance data is straight binary from pd input port; default after reset uv2c 0 input colour difference data is twos complement from pd input port 1 input colour difference data is straight binary from pd input port; default after reset data byte logic level description vpsen 0 video programming system data insertion is disabled; default after reset 1 video programming system data insertion in line 16 is enabled gpval 0 pin vsm provides a low level if gpen = 1 1 pin vsm provides a high level if gpen = 1 gpen 0 pin vsm provides a vertical sync for a monitor; default after reset 1 pin vsm provides a constant signal according to gpval edge 0 input data is sampled with inverse clock edges 1 input data is sampled with the clock edges speci?ed in tables 9 to 14; default after reset slot 0 normal assignment of the input data to the clock edge; default after reset 1 correct time misalignment due to inverted assignment of input data to the clock edge data byte description remarks vps5 ?fth byte of video programming system data in line 16; lsb ?rst; all other bytes are not relevant for vps vps11 eleventh byte of video programming system data vps12 twelfth byte of video programming system data vps13 thirteenth byte of video programming system data vps14 fourteenth byte of video programming system data data byte logic level description
2004 jun 29 120 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 74 subaddress 5ah; note 1 note 1. the default value after reset is 00h. table 75 subaddresses 5bh and 5dh table 76 subaddresses 5ch and 5eh table 77 subaddress 5dh notes 1. output black level/ire = blckl 2/6.29 + 28.9. 2. output black level/ire = blckl 2/6.18 + 26.5. data byte description value result chps phase of encoded colour subcarrier (including burst) relative to horizontal sync; can be adjusted in steps of 360/256 degrees 6bh pal b/g and data from input ports in master mode 16h pal b/g and data from look-up table 25h ntsc m and data from input ports in master mode 46h ntsc m and data from look-up table data byte description conditions remarks gainu variable gain for c b signal; input representation in accordance with itu-r bt.601 white-to-black = 92.5 ire gainu = - 2.17 nominal to +2.16 nominal gainu = 0 output subcarrier of u contribution = 0 gainu = 118 (76h) output subcarrier of u contribution = nominal white-to-black = 100 ire gainu = - 2.05 nominal to +2.04 nominal gainu = 0 output subcarrier of u contribution = 0 gainu = 125 (7dh) output subcarrier of u contribution = nominal data byte description conditions remarks gainv variable gain for c r signal; input representation in accordance with itu-r bt.601 white-to-black = 92.5 ire gainv = - 1.55 nominal to +1.55 nominal gainv = 0 output subcarrier of v contribution = 0 gainv = 165 (a5h) output subcarrier of v contribution = nominal white-to-black = 100 ire gainv = - 1.46 nominal to +1.46 nominal gainv = 0 output subcarrier of v contribution = 0 gainv = 175 (afh) output subcarrier of v contribution = nominal data byte description conditions remarks blckl variable black level; input representation in accordance with itu-r bt.601 white-to-sync = 140 ire; note 1 recommended value: blckl = 58 (3ah) blckl = 0; note 1 output black level = 29 ire blckl = 63 (3fh); note 1 output black level = 49 ire white-to-sync = 143 ire; note 2 recommended value: blckl = 51 (33h) blckl = 0; note 2 output black level = 27 ire blckl = 63 (3fh); note 2 output black level = 47 ire
2004 jun 29 121 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 78 subaddress 5eh notes 1. output black level/ire = blnnl 2/6.29 + 25.4. 2. output black level/ire = blnnl 2/6.18 + 25.9; default after reset: 35h. table 79 subaddress 5fh table 80 logic levels and function of ccrs table 81 subaddress 61h data byte description conditions remarks blnnl variable blanking level white-to-sync = 140 ire; note 1 recommended value: blnnl = 46 (2eh) blnnl = 0; note 1 output blanking level = 25 ire blnnl = 63 (3fh); note 1 output blanking level = 45 ire white-to-sync = 143 ire; note 2 recommended value: blnnl = 53 (35h) blnnl = 0; note 2 output blanking level = 26 ire blnnl = 63 (3fh); note 2 output blanking level = 46 ire data byte description ccrs select cross-colour reduction ?lter in luminance; see table 80 blnvb variable blanking level during vertical blanking interval is typically identical to value of blnnl ccrs1 ccrs0 description 0 0 no cross-colour reduction; for overall transfer characteristic of luminance see fig.7 0 1 cross-colour reduction #1 active; for overall transfer characteristic see fig.7 1 0 cross-colour reduction #2 active; for overall transfer characteristic see fig.7 1 1 cross-colour reduction #3 active; for overall transfer characteristic see fig.7 data byte logic level description downd 0 digital core in normal operational mode; default after reset 1 digital core in sleep mode and is reactivated with an i 2 c-bus address downa 0 dacs in normal operational mode; default after reset 1 dacs in power-down mode inpi 0 pal switch phase is nominal; default after reset 1 pal switch is inverted compared to nominal if rtce = 1 ygs 0 luminance gain for white - black 100 ire 1 luminance gain for white - black 92.5 ire including 7.5 ire set-up of black scbw 0 enlarged bandwidth for chrominance encoding (for overall transfer characteristic of chrominance in baseband representation see figs 5 and 6) 1 standard bandwidth for chrominance encoding (for overall transfer characteristic of chrominance in baseband representation see figs 5 and 6); default after reset
2004 jun 29 122 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 82 subaddress 62h table 83 subaddresses 63h to 66h (four bytes to program subcarrier frequency) note 1. examples: a) ntsc m: f fsc = 227.5, f llc = 1716 ? fsc = 569408543 (21f07c1fh). b) pal b/g: f fsc = 283.7516, f llc = 1728 ? fsc = 705268427 (2a098acbh). table 84 subaddresses 67h to 6ah pal 0 ntsc encoding (non-alternating v component) 1 pal encoding (alternating v component) fise 0 864 total pixel clocks per line 1 858 total pixel clocks per line data byte logic level description conditions remarks rtce 0 no real-time control of generated subcarrier frequency; default after reset 1 real-time control of generated subcarrier frequency through a philips video decoder; for a speci?cation of the rtc protocol see document rtc functional description , available on request bsta - amplitude of colour burst; input representation in accordance with itu-r bt.601 white-to-black = 92.5 ire; burst = 40 ire; ntsc encoding recommended value: bsta = 63 (3fh) bsta = 0 to 2.02 nominal white-to-black = 92.5 ire; burst = 40 ire; pal encoding recommended value: bsta = 45 (2dh) bsta = 0 to 2.82 nominal white-to-black = 100 ire; burst = 43 ire; ntsc encoding recommended value: bsta = 67 (43h) bsta = 0 to 1.90 nominal white-to-black = 100 ire; burst = 43 ire; pal encoding recommended value: bsta = 47 (2fh); default after reset bsta = 0 to 3.02 nominal data byte description conditions remarks fsc0 to fsc3 f fsc = subcarrier frequency (in multiples of line frequency); f llc = clock frequency (in multiples of line frequency) ; note 1 fsc3 = most signi?cant byte; fsc0 = least signi?cant byte data byte description remarks l21o0 ?rst byte of captioning data, odd ?eld lsbs of the respective bytes are encoded immediately after run-in and framing code, the msbs of the respective bytes have to carry the parity bit, in accordance with the de?nition of line 21 encoding format. l21o1 second byte of captioning data, odd ?eld l21e0 ?rst byte of extended data, even ?eld l21e1 second byte of extended data, even ?eld data byte logic level description fsc round f fsc f llc ------- - 2 32 ? ?? =
2004 jun 29 123 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 85 subaddresses 6ch and 6dh table 86 subaddress 6dh table 87 subaddress 6eh table 88 logic levels and function of phres table 89 logic levels and function of ldel data byte description htrig sets the horizontal trigger phase related to chip-internal horizontal input values above 1715 (fise = 1) or 1727 (fise = 0) are not allowed; increasing htrig decreases delays of all internally generated timing signals; the default value is 0 data byte description vtrig sets the vertical trigger phase related to chip-internal vertical input increasing vtrig decreases delays of all internally generated timing signals, measured in half lines; variation range of vtrig = 0 to 31 (1fh); the default value is 0 data byte logic level description nvtrig 0 values of the vtrig register are positive 1 values of the vtrig register are negative blckon 0 encoder in normal operation mode; default after reset 1 output signal is forced to blanking level phres - selects the phase reset mode of the colour subcarrier generator; see table 88 ldel - selects the delay on luminance path with reference to chrominance path; see table 89 flc - ?eld length control; see table 90 data byte description phres1 phres0 0 0 no subcarrier reset 0 1 subcarrier reset every two lines 1 0 subcarrier reset every eight ?elds 1 1 subcarrier reset every four ?elds data byte description ldel1 ldel0 0 0 no luminance delay; default after reset 0 1 1 llc luminance delay 1 0 2 llc luminance delay 1 1 3 llc luminance delay
2004 jun 29 124 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 90 logic levels and function of flc table 91 subaddress 6fh table 92 logic levels and function of ccen table 93 subaddresses 70h to 72h table 94 subaddress 73h data byte description flc1 flc0 0 0 interlaced 312.5 lines/?eld at 50 hz, 262.5 lines/?eld at 60 hz; default after reset 0 1 non-interlaced 312 lines/?eld at 50 hz, 262 lines/?eld at 60 hz 1 0 non-interlaced 313 lines/?eld at 50 hz, 263 lines/?eld at 60 hz 1 1 non-interlaced 313 lines/?eld at 50 hz, 263 lines/?eld at 60 hz data byte logic level description ccen - enables individual line 21 encoding; see table 92 ttxen 0 disables teletext insertion; default after reset 1 enables teletext insertion sccln - selects the actual line, where closed caption or extended data are encoded; line = (sccln + 4) for m-systems; line = (sccln + 1) for other systems data byte description ccen1 ccen0 0 0 line 21 encoding off; default after reset 0 1 enables encoding in ?eld 1 (odd) 1 0 enables encoding in ?eld 2 (even) 1 1 enables encoding in both ?elds data byte description adwhs active display window horizontal start; de?nes the start of the active tv display portion after the border colour values above 1715 (fise = 1) or 1727 (fise = 0) are not allowed adwhe active display window horizontal end; de?nes the end of the active tv display portion before the border colour values above 1715 (fise = 1) or 1727 (fise = 0) are not allowed data byte description remarks ttxhs start of signal ttxrq on pin ttxrq_xclko2 (clk2en = 0); see fig.51 ttxhs = 42h; is default after reset if strapped to pal ttxhs = 54h; is default after reset if strapped to ntsc
2004 jun 29 125 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 95 subaddress 74h table 96 subaddress 75h table 97 subaddresses 76h, 77h and 7ch table 98 subaddresses 78h, 79h and 7ch table 99 subaddresses 7ah to 7ch data byte description remarks ttxhd indicates the delay in clock cycles between rising edge of ttxrq output signal on pin ttxrq_xclko2 (clk2en = 0) and valid data at pin ttx_sres minimum value: ttxhd = 2; is default after reset data byte description csynca advanced composite sync against rgb output from 0 xtal clocks to 31 xtal clocks data byte description remarks ttxovs ?rst line of occurrence of signal ttxrq on pin ttxrq_xclko2 (clk2en = 0) in odd ?eld ttxovs = 05h; is default after reset if strapped to pal ttxovs = 06h; is default after reset if strapped to ntsc line = (ttxovs + 4) for m-systems line = (ttxovs + 1) for other systems ttxove last line of occurrence of signal ttxrq on pin ttxrq_xclko2 (clk2en = 0) in odd ?eld ttxove = 16h; is default after reset if strapped to pal ttxove = 10h; is default after reset if strapped to ntsc line = (ttxove + 3) for m-systems line = ttxove for other systems data byte description remarks ttxevs ?rst line of occurrence of signal ttxrq on pin ttxrq_xclko2 (clk2en = 0) in even ?eld ttxevs = 04h; is default after reset if strapped to pal ttxevs = 05h; is default after reset if strapped to ntsc line = (ttxevs + 4) for m-systems line = (ttxevs + 1) for other systems ttxeve last line of occurrence of signal ttxrq on pin ttxrq_xclko2 (clk2en = 0) in even ?eld ttxeve = 16h; is default after reset if strapped to pal ttxeve = 10h; is default after reset if strapped to ntsc line = (ttxeve + 3) for m-systems line = ttxeve for other systems data byte description fal ?rst active line = fal + 4 for m-systems and fal + 1 for other systems, measured in lines fal = 0 coincides with the first field synchronization pulse lal last active line = lal + 3 for m-systems and lal for other system, measured in lines lal = 0 coincides with the first field synchronization pulse
2004 jun 29 126 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 100 subaddress 7ch table 101 subaddresses 7eh and 7fh table 102 subaddresses 81h to 83h table 103 subaddress 84h data byte logic level description ttx60 0 enables nabts (fise = 1) or european ttx (fise = 0); default after reset 1 enables world standard teletext 60 hz (fise = 1) ttxo 0 new teletext protocol selected; at each rising edge of ttxrq a single teletext bit is requested (see fig.51); default after reset 1 old teletext protocol selected; the encoder provides a window of ttxrq going high; the length of the window depends on the chosen teletext standard (see fig.51) data byte description line individual lines in both ?elds (pal counting) can be disabled for insertion of teletext by the respective bits, disabled line = linexx (50 hz ?eld rate) this bit mask is effective only if the lines are enabled by ttxovs/ttxove and ttxevs/ttxeve data byte description pcl de?nes the frequency of the synthesized pixel clock pixclko; ; f xtal = 27 mhz nominal, e.g. 640 480 to ntsc m: pcl = 20f63bh; 640 480 to pal b/g: pcl = 1b5a73h (as by strapping pins) data byte logic level description dclk 0 pixel clock input is differential, pin pixclki receives the inverted clock; default after reset 1 pixel clock input is single ended, pin pixclki has no function pclsy 0 pixel clock generator runs free; default after reset 1 pixel clock generator gets synchronized with the vertical sync ifra 0 input fifo gets reset explicitly at falling edge 1 input fifo gets reset every ?eld; default after reset ifbp 0 input fifo is active 1 input fifo is bypassed; default after reset pcle - controls the divider for the external pixel clock; see table 104 pcli - controls the divider for the internal pixel clock; see table 105 f pixclk pcl 2 24 ----------- f xtal ? ?? 8 =
2004 jun 29 127 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 104 logic levels and function of pcle table 105 logic levels and function of pcli table 106 subaddress 85h table 107 subaddresses 90h and 94h table 108 subaddresses 91h and 94h table 109 subaddresses 92h and 94h data byte description pcle1 pcle0 0 0 divider ratio for pixclk output is 1 0 1 divider ratio for pixclk output is 2; default after reset 1 0 divider ratio for pixclk output is 4 1 1 divider ratio for pixclk output is 8 data byte description pcli1 pcli0 0 0 divider ratio for internal pixclk is 1 0 1 divider ratio for internal pixclk is 2; default after reset 1 0 divider ratio for internal pixclk is 4 1 1 not allowed data byte logic level description eidiv 0 input dividers are off; inputs are high-impedance; default after reset 1 input dividers are on; inputs have lower impedance fili - threshold for fifo internal transfers; nominal value is 8; default after reset data byte description xofs horizontal offset; de?nes the number of pixclks from horizontal sync (hsvgc) output to composite blanking ( cbo) output data byte description xpix pixel in x direction; de?nes half the number of active pixels per input line (identical to the length of cbo pulses) data byte description yofso vertical offset in odd ?eld; de?nes (in the odd ?eld) the number of lines from vsvgc to ?rst line with active cbo; if no lut data is requested, the ?rst active cbo will be output at yofso + 2; usually, yofso = yofse with the exception of extreme vertical downscaling and interlacing
2004 jun 29 128 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 110 subaddresses 93h and 94h table 111 subaddresses 95h and 96h table 112 subaddress 96h table 113 subaddress 97h data byte description yofse vertical offset in even ?eld; de?nes (in the even ?eld) the number of lines from vsvgc to ?rst line with active cbo; if no lut data is requested, the ?rst active cbo will be output at yofse + 2; usually, yofse = yofso with the exception of extreme vertical downscaling and interlacing data byte description ypix de?nes the number of requested input lines from the feeding device; number of requested lines = ypix + yofse - yofso data byte logic level description efs 0 frame sync signal at pin fsvgc ignored in slave mode 1 frame sync signal at pin fsvgc accepted in slave mode pcbn 0 normal polarity of cbo signal (high during active video) 1 inverted polarity of cbo signal (low during active video) slave 0 the SAA7108AE; saa7109ae is timing master to the graphics controller 1 the SAA7108AE; saa7109ae is timing slave to the graphics controller ilc 0 if hardware cursor insertion is active, set low for non-interlaced input signals 1 if hardware cursor insertion is active, set high for interlaced input signals yfil 0 luminance sharpness booster disabled 1 luminance sharpness booster enabled data byte logic level description hfs 0 horizontal sync is directly derived from input signal (slave mode) at pin hsvgc 1 horizontal sync is derived from a frame sync signal (slave mode) at pin fsvgc (only if efs is set high) vfs 0 vertical sync (?eld sync) is directly derived from input signal (slave mode) at pin vsvgc 1 vertical sync (?eld sync) is derived from a frame sync signal (slave mode) at pin fsvgc (only if efs is set high) ofs 0 pin fsvgc is switched to input 1 pin fsvgc is switched to active output pfs 0 polarity of signal at pin fsvgc in output mode (master mode) is active high; rising edge of the input signal is used in slave mode 1 polarity of signal at pin fsvgc in output mode (master mode) is active low; falling edge of the input signal is used in slave mode ovs 0 pin vsvgc is switched to input 1 pin vsvgc is switched to active output
2004 jun 29 129 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 114 subaddresses 98h and 99h table 115 subaddress 99h table 116 subaddresses 9ah and 9ch table 117 subaddresses 9bh and 9ch table 118 subaddresses 9dh and 9fh pvs 0 polarity of signal at pin vsvgc in output mode (master mode) is active high; rising edge of the input signal is used in slave mode 1 polarity of signal at pin vsvgc in output mode (master mode) is active low; falling edge of the input signal is used in slave mode ohs 0 pin hsvgc is switched to input 1 pin hsvgc is switched to active output phs 0 polarity of signal at pin hsvgc in output mode (master mode) is active high; rising edge of the input signal is used in slave mode 1 polarity of signal at pin hsvgc in output mode (master mode) is active low; falling edge of the input signal is used in slave mode data byte description hlen horizontal length; data byte description idel input delay; de?nes the distance in pixclks between the active edge of cbo and the ?rst received valid pixel data byte description xinc incremental fraction of the horizontal scaling engine; data byte description yinc incremental fraction of the vertical scaling engine; data byte description yiwgto weighting factor for the ?rst line of the odd ?eld; data byte logic level description hlen number of pixclks line ---------------------------------------------------- - 1 C = xinc number of output pixels line ------------------------------------------------------------- - number of input pixels line ---------------------------------------------------------- -------------------------------------------------------------- 4096 = yinc number of active output lines number of active input lines ---------------------------------------------------------------------------- 4096 = yiwgto yinc 2 ------------- - 2048 + =
2004 jun 29 130 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 119 subaddresses 9eh and 9fh table 120 subaddresses a0h and a1h table 121 subaddress a1h table 122 subaddresses a2h to a4h table 123 subaddress d0h table 124 layout of the data bytes in the line count array data byte description yiwgte weighting factor for the ?rst line of the even ?eld; data byte description yskip vertical line skip; de?nes the effectiveness of the anti-?icker ?lter; yskip = 0: most effective; yskip = 4095: anti-?icker ?lter switched off data byte logic level description blen 0 no internal blanking for non-interlaced graphics in bypass mode; default after reset 1 forced internal blanking for non-interlaced graphics in bypass mode data byte description bcy, bcu and bcv luminance and colour difference portion of border colour in underscan area data byte description hlca ram start address for the hd sync line count array; the byte following subaddress d0 points to the ?rst cell to be loaded with the next transmitted byte; succeeding cells are loaded by auto-incrementing until stop condition. each line count array entry consists of 2 bytes; see table 124. the array has 15 entries. hlc hd line counter. the system will repeat the pattern described in hlt hlc times and then start with the next entry in line count array. hlt hd line type pointer. if not 0, the value points into the line type array, index hlt - 1 with the description of the current line. 0 means the entry is not used. byte description 0 hlc7 hlc6 hlc5 hlc4 hlc3 hlc2 hlc1 hlc0 1 hlt3 hlt2 hlt1 hlt0 0 0 hlc9 hlc8 yiwgte yinc yskip C 2 ------------------------------------- - =
2004 jun 29 131 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 125 subaddress d1h table 126 layout of the data bytes in the line type array table 127 subaddress d2h table 128 layout of the data bytes in the line pattern array data byte description hlta ram start address for the hd sync line type array; the byte following subaddress d1 points to the ?rst cell to be loaded with the next transmitted byte; succeeding cells are loaded by auto-incrementing until stop condition. each line type array entry consists of 4 bytes; see table 126. the array has 15 entries. hlp hd line type; if not 0, the value points into the line pattern array. the index used is hlp - 1. it consists of value-duration pairs. each entry consists of 8 pointers, used from index 0 to 7. the value 0 means that the entry is not used. byte description 0 0 hlp12 hlp11 hlp10 0 hlp02 hlp01 hlp00 1 0 hlp32 hlp31 hlp30 0 hlp22 hlp21 hlp20 2 0 hlp52 hlp51 hlp50 0 hlp42 hlp41 hlp40 3 0 hlp72 hlp71 hlp70 0 hlp62 hlp61 hlp60 data byte description hlpa ram start address for the hd sync line pattern array; the byte following subaddress d2 points to the ?rst cell to be loaded with the next transmitted byte; succeeding cells are loaded by auto-incrementing until stop condition. each line pattern array entry consists of 4 value-duration pairs occupying 2 bytes; see table 128. the array has 7 entries. hpd hd pattern duration. the value de?nes the time in pixel clocks (hpd + 1) the corresponding value hpv is added to the hd output signal. if 0, this entry will be skipped. hpv hd pattern value pointer. this gives the index in the hd value array containing the level to be inserted into the hd output path. if the msb of hpv is logic 1, the value will only be inserted into the y/green channel of the hd data path, the other channels remain unchanged. byte description 0 hpd07 hpd06 hpd05 hpd04 hpd03 hpd02 hpd01 hpd00 1 hpv03 hpv02 hpv01 hpv00 0 0 hpd09 hpd08 2 hpd17 hpd16 hpd14 hpd14 hpd13 hpd12 hpd11 hpd10 3 hpv13 hpv12 hpv11 hpv10 0 0 hpd19 hpd18 4 hpd27 hpd26 hpd25 hpd24 hpd23 hpd22 hpd21 hpd20 5 hpv23 hpv22 hpv21 hpv20 0 0 hpd29 hpd28 6 hpd37 hpd36 hpd35 hpd34 hpd33 hpd32 hpd31 hpd30 7 hpv33 hpv32 hpv31 hpv30 0 0 hpd39 hpd38
2004 jun 29 132 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 129 subaddress d3h table 130 layout of the data bytes in the value array table 131 subaddresses d4h and d5h table 132 subaddresses d6h and d7h table 133 subaddresses d8h and d9h table 134 subaddresses dah and dbh table 135 subaddress dch data byte description hpva ram start address for the hd sync value array; the byte following subaddress d3 points to the ?rst cell to be loaded with the next transmitted byte; succeeding cells are loaded by auto-incrementing until stop condition. each line pattern array entry consists of 2 bytes. the array has 8 entries. hpve hd pattern value entry. the hd path will insert a level of (hpv + 52) 0.66 ire into the data path. the value is signed 8-bits wide; see table 130. hhs hd horizontal sync. if the hd engine is active, this value will be provided at pin hsm; see table 130. hvs hd vertical sync. if the hd engine is active, this value will be provided at pin vsm; see table 130. byte description 0 hpve7 hpve6 hpve5 hpve4 hpve3 hpve2 hpve1 hpve0 1 000000hvshhs data byte description hlct state of the hd line counter after trigger, note that it counts backwards hlcpt state of the hd line type pointer after trigger hlppt state of the hd pattern pointer after trigger data byte description hdct state of the hd duration counter after trigger, note that it counts backwards hept state of the hd event type pointer in the line type array after trigger data byte description htx horizontal trigger phase for the hd sync engine in pixel clocks data byte description hty vertical trigger phase for the hd sync engine in input lines data byte logic level description hdsye 0 the hd sync engine is off; default after reset 1 the hd sync engine is active hdtc 0 hd output path processes rgb; default after reset 1 hd output path processes yuv
2004 jun 29 133 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 136 subaddresses f0h to f2h table 137 subaddresses f3h to f5h table 138 subaddresses f6h to f8h table 139 subaddresses f9h and fah table 140 subaddress fah table 141 subaddresses fbh and fch table 142 subaddress fch hdgy 0 gain in the hd output path is reduced, insertion of sync pulses is possible; default after reset 1 full level swing at the input causes full level swing at the dacs in hd mode hdip 0 interpolator for the colour difference signal in the hd output path is active; default after reset 1 interpolator for the colour difference signals in the hd output path is off data byte description cc1r, cc1g and cc1b red, green and blue portion of ?rst cursor colour data byte description cc2r, cc2g and cc2b red, green and blue portion of second cursor colour data byte description auxr, auxg and auxb red, green and blue portion of auxiliary cursor colour data byte description xcp horizontal cursor position data byte description xhs horizontal hot spot of cursor data byte description ycp vertical cursor position data byte description yhs vertical hot spot of cursor data byte logic level description
2004 jun 29 134 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 143 subaddress fdh table 144 subaddress feh table 145 subaddress ffh in subaddresses 5bh, 5ch, 5dh, 5eh, 62h and d3h all ire values are rounded up. data byte logic level description lutoff 0 colour look-up table is active 1 colour look-up table is bypassed cmode 0 cursor mode; input colour will be inverted 1 auxiliary cursor colour will be inserted lutl 0 lut loading via input data stream is inactive 1 colour and cursor luts are loaded via input data stream if 0 input format is 8 + 8 + 8-bit 4 :4:4 non-interlaced rgb or c b -y-c r 1 input format is 5 + 5 + 5-bit 4 :4:4 non-interlaced rgb 2 input format is 5 + 6 + 5-bit 4 :4:4 non-interlaced rgb 3 input format is 8 + 8 + 8-bit 4 :2:2 non-interlaced c b -y-c r 4 input format is 8 + 8 + 8-bit 4 :2:2 interlaced c b -y-c r (itu-r bt.656, 27 mhz clock) (in subaddresses 91h and 94h set xpix = number of active pixels/line) 5 input format is 8-bit non-interlaced index colour 6 input format is 8 + 8 + 8-bit 4 :4:4 non-interlaced rgb or c b -y-c r (special bit ordering) matoff 0 rgb to c r -y-c b matrix is active 1 rgb to c r -y-c b matrix is bypassed dfoff 0 down formatter ( 4:4:4to4:2:2) in input path is active 1 down formatter is bypassed data byte description cursa ram start address for cursor bit map; the byte following subaddress feh points to the ?rst cell to be loaded with the next transmitted byte; succeeding cells are loaded by auto-incrementing until stop condition data byte description colsa ram start address for colour lut; the byte following subaddress ffh points to the ?rst cell to be loaded with the next transmitted byte; succeeding cells are loaded by auto-incrementing until stop condition
2004 jun 29 135 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.1.3 s lave transmitter table 146 slave transmitter (slave address 89h) table 147 subaddress 00h table 148 subaddress 1ch table 149 subaddress 80h register function subaddress data byte d7 d6 d5 d4 d3 d2 d1 d0 status byte 00h ver2 ver1 ver0 ccrdo ccrde 0 fseq o_e chip id 1ch cid7 cid6 cid5 cid4 cid3 cid2 cid1 cid0 fifo status 80h 0 0 0 0 0 0 ovfl udfl data byte logic level description ver - version identi?cation of the device: it will be changed with all versions of the ic that have different programming models; current version is 101 binary ccrdo 1 closed caption bytes of the odd ?eld have been encoded 0 the bit is reset after information has been written to the subaddresses 67h and 68h; it is set immediately after the data has been encoded ccrde 1 closed caption bytes of the even ?eld have been encoded 0 the bit is reset after information has been written to the subaddresses 69h and 6ah; it is set immediately after the data has been encoded fseq 1 during ?rst ?eld of a sequence (repetition rate: ntsc = 4 ?elds, pal = 8 ?elds) 0 not ?rst ?eld of a sequence o_e 1 during even ?eld 0 during odd ?eld data byte description cid chip id of SAA7108AE = 04h; chip id of saa7109ae = 05h data byte logic level description iferr 0 normal fifo state 1 input fifo over?ow/under?ow has occurred bferr 0 normal fifo state 1 buffer fifo over?ow, only if yupsc = 1 ovfl 0 no fifo over?ow 1 fifo over?ow has occurred; this bit is reset after this subaddress has been read udfl 0 no fifo under?ow 1 fifo under?ow has occurred; this bit is reset after this subaddress has been read
2004 jun 29 136 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2 digital video decoder part 18.2.1 i 2 c- bus format ack-s ack-s data slave address w data transferred (n bytes + acknowledge) mhb339 p s ack-s subaddress ack-s ack-m slave address r mhb340 p sr ack-s ack-s data subaddress slave address w s data transferred (n bytes + acknowledge) fig.58 i 2 c-bus format. a. write procedure. b. read procedure (combined). table 150 description of i 2 c-bus format; note 1 notes 1. the SAA7108AE; saa7109ae supports the fast mode i 2 c-bus specification extension (data rate up to 400 kbits/s). 2. if pin rtco is strapped to v ddd via a 3.3 k w resistor. code description s start condition sr repeated start condition slave address w 0100 0010 (42h, default) or 0100 0000 (40h; note 2) slave address r 0100 0011 (43h, default) or 0100 0001 (41h; note 2) ack-s acknowledge generated by the slave ack-m acknowledge generated by the master subaddress subaddress byte; see tables 151 and 152 data data byte; see table 152; if more than one byte data is transmitted the subaddress pointer is automatically incremented p stop condition x read/write control bit (lsb slave address); x = 0, order to write (the circuit is slave receiver); x = 1, order to read (the circuit is slave transmitter)
2004 jun 29 137 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 151 subaddress description and access subaddress description access (read/write) 00h chip version read only f0h to ffh reserved - video decoder: 01h to 2fh 01h to 05h front-end part read and write 06h to 19h decoder part read and write 1ah to 1eh reserved - 1fh video decoder status byte read only 20h to 2fh reserved - audio clock generation: 30h to 3fh 30h to 3ah audio clock generator read and write 3bh to 3fh reserved - general purpose vbi data slicer: 40h to 7fh 40h to 5eh vbi data slicer read and write 5fh reserved - 60h to 62h vbi data slicer status read only 63h to 7fh reserved - x port, i port and the scaler: 80h to efh 80h to 8fh task independent global settings read and write 90h to bfh task a de?nition read and write c0h to efh task b de?nition read and write
2004 jun 29 138 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... table 152 i 2 c-bus receiver/transmitter overview register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0 chip version: register 00h chip version (read only) 00 id7 id6 id5 id4 ---- video decoder: registers 01h to 2fh f ront - end part : registers 01h to 05h increment delay 01 (1) (1) (1) (1) idel3 idel2 idel1 idel0 analog input control 1 02 fuse1 fuse0 gudl1 gudl0 mode3 mode2 mode1 mode0 analog input control 2 03 (1) hlnrs vbsl wpoff holdg gafix gai28 gai18 analog input control 3 04 gai17 gai16 gai15 gai14 gai13 gai12 gai11 gai10 analog input control 4 05 gai27 gai26 gai25 gai24 gai23 gai22 gai21 gai20 d ecoder part : registers 06h to 2fh horizontal sync start 06 hsb7 hsb6 hsb5 hsb4 hsb3 hsb2 hsb1 hsb0 horizontal sync stop 07 hss7 hss6 hss5 hss4 hss3 hss2 hss1 hss0 sync control 08 aufd fsel foet htc1 htc0 hpll vnoi1 vnoi0 luminance control 09 byps ycomb ldel lubw lufi3 lufi2 lufi1 lufi0 luminance brightness control 0a dbri7 dbri6 dbri5 dbri4 dbri3 dbri2 dbri1 dbri0 luminance contrast control 0b dcon7 dcon6 dcon5 dcon4 dcon3 dcon2 dcon1 dcon0 chrominance saturation control 0c dsat7 dsat6 dsat5 dsat4 dsat3 dsat2 dsat1 dsat0 chrominance hue control 0d huec7 huec6 huec5 huec4 huec3 huec2 huec1 huec0 chrominance control 1 0e cdto cstd2 cstd1 cstd0 dcvf fctc (1) ccomb chrominance gain control 0f acgc cgain6 cgain5 cgain4 cgain3 cgain2 cgain1 cgain0 chrominance control 2 10 offu1 offu0 offv1 offv0 chbw lcbw2 lcbw1 lcbw0 mode/delay control 11 colo rtp1 hdel1 hdel0 rtp0 ydel2 ydel1 ydel0 rt signal control 12 rtse13 rtse12 rtse11 rtse10 rtse03 rtse02 rtse01 rtse00 rt/x port output control 13 rtce xrhs xrvs1 xrvs0 hlsel ofts2 ofts1 ofts0 analog/adc/compatibility control 14 cm99 uptcv aosl1 aosl0 xtoute oldsb apck1 apck0 vgate start, fid change 15 vsta7 vsta6 vsta5 vsta4 vsta3 vsta2 vsta1 vsta0 vgate stop 16 vsto7 vsto6 vsto5 vsto4 vsto3 vsto2 vsto1 vsto0
2004 jun 29 139 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... miscellaneous, vgate con?guration and msbs 17 llce llc2e (1) (1) (1) vgps vsto8 vsta8 raw data gain control 18 rawg7 rawg6 rawg5 rawg4 rawg3 rawg2 rawg1 rawg0 raw data offset control 19 rawo7 rawo6 rawo5 rawo4 rawo3 rawo2 rawo1 rawo0 reserved 1a to 1e (1) (1) (1) (1) (1) (1) (1) (1) status byte video decoder (read only, oldsb = 0) 1f intl hlvln fidt glimt glimb wipa copro rdcap status byte video decoder (read only, oldsb = 1) 1f intl hlck fidt glimt glimb wipa sltca code reserved 20 to 2f (1) (1) (1) (1) (1) (1) (1) (1) audio clock generator part: registers 30h to 3fh audio master clock cycles per ?eld 30 acpf7 acpf6 acpf5 acpf4 acpf3 acpf2 acpf1 acpf0 31 acpf15 acpf14 acpf13 acpf12 acpf11 acpf10 acpf9 acpf8 32 (1) (1) (1) (1) (1) (1) acpf17 acpf16 reserved 33 (1) (1) (1) (1) (1) (1) (1) (1) audio master clock nominal increment 34 acni7 acni6 acni5 acni4 acni3 acni2 acni1 acni0 35 acni15 acni14 acni13 acni12 acni11 acni10 acni9 acni8 36 (1) (1) acni21 acni20 acni19 acni18 acni17 acni16 reserved 37 (1) (1) (1) (1) (1) (1) (1) (1) clock ratio amxclk to asclk 38 (1) (1) sdiv5 sdiv4 sdiv3 sdiv2 sdiv1 sdiv0 clock ratio asclk to alrclk 39 (1) (1) lrdiv5 lrdiv4 lrdiv3 lrdiv2 lrdiv1 lrdiv0 audio clock generator basic set-up 3a (1) (1) (1) (1) apll amvr lrph scph reserved 3b to 3f (1) (1) (1) (1) (1) (1) (1) (1) general purpose vbi data slicer part: registers 40h to 7fh slicer control 1 40 (1) ham_n fce hunt_n (1) (1) (1) (1) lcr2 to lcr24 (n = 2 to 24) 41 to 57 lcrn_7 lcrn_6 lcrn_5 lcrn_4 lcrn_3 lcrn_2 lcrn_1 lcrn_0 programmable framing code 58 fc7 fc6 fc5 fc4 fc3 fc2 fc1 fc0 horizontal offset for slicer 59 hoff7 hoff6 hoff5 hoff4 hoff3 hoff2 hoff1 hoff0 vertical offset for slicer 5a voff7 voff6 voff5 voff4 voff3 voff2 voff1 voff0 register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 140 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... field offset and msbs for horizontal and vertical offset 5b foff recode (1) voff8 (1) hoff10 hoff9 hoff8 reserved (for testing) 5c (1) (1) (1) (1) (1) (1) (1) (1) header and data identi?cation (did) code control 5d fvref (1) did5 did4 did3 did2 did1 did0 sliced data identi?cation (sdid) code 5e (1) (1) sdid5 sdid4 sdid3 sdid2 sdid1 sdid0 reserved 5f (1) (1) (1) (1) (1) (1) (1) (1) slicer status byte 0 (read only) 60 - fc8v fc7v vpsv ppv ccv -- slicer status byte 1 (read only) 61 -- f21_n ln8 ln7 ln6 ln5 ln4 slicer status byte 2 (read only) 62 ln3 ln2 ln1 ln0 dt3 dt2 dt1 dt0 reserved 63 to 7f (1) (1) (1) (1) (1) (1) (1) (1) x port, i port and the scaler part: registers 80h to efh t ask independent global settings : 80h to 8fh global control 1 80 (1) smod teb tea icks3 icks2 icks1 icks0 reserved 81 and 82 (1) (1) (1) (1) (1) (1) (1) (1) x port i/o enable and output clock phase control 83 (1) (1) xpck1 xpck0 (1) xrqt xpe1 xpe0 i port signal de?nitions 84 idg01 idg00 idg11 idg10 idv1 idv0 idh1 idh0 i port signal polarities 85 iswp1 iswp0 illv ig0p ig1p irvp irhp idqp i port fifo ?ag control and arbitration 86 vitx1 vitx0 idg02 idg12 ffl1 ffl0 fel1 fel0 i port i/o enable, output clock and gated clock phase control 87 ipck3 ipck2 ipck1 ipck0 (1) (1) ipe1 ipe0 power save control 88 ch4en ch2en swrst dprog slm3 (1) slm1 slm0 reserved 89 to 8e (1) (1) (1) (1) (1) (1) (1) (1) status information scaler part 8f xtri itri ffil ffov prdon errof fidsci fidsco register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 141 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... t ask a definition : registers 90h to bfh basic settings and acquisition window de?nition task handling control 90 conlh ofidc fskp2 fskp1 fskp0 rptsk strc1 strc0 x port formats and con?guration 91 conlv hldfv scsrc1 scsrc0 scrqe fsc2 fsc1 fsc0 x port input reference signal de?nitions 92 xfdv xfdh xdv1 xdv0 xcode xdh xdq xcks i port output formats and con?guration 93 icode i8_16 fysk foi1 foi0 fsi2 fsi1 fsi0 horizontal input window start 94 xo7 xo6 xo5 xo4 xo3 xo2 xo1 xo0 95 (1) (1) (1) (1) xo11 xo10 xo9 xo8 horizontal input window length 96 xs7 xs6 xs5 xs4 xs3 xs2 xs1 xs0 97 (1) (1) (1) (1) xs11 xs10 xs9 xs8 vertical input window start 98 yo7 yo6 yo5 yo4 yo3 yo2 yo1 yo0 99 (1) (1) (1) (1) yo11 yo10 yo9 yo8 vertical input window length 9a ys7 ys6 ys5 ys4 ys3 ys2 ys1 ys0 9b (1) (1) (1) (1) ys11 ys10 ys9 ys8 horizontal output window length 9c xd7 xd6 xd5 xd4 xd3 xd2 xd1 xd0 9d (1) (1) (1) (1) xd11 xd10 xd9 xd8 vertical output window length 9e yd7 yd6 yd5 yd4 yd3 yd2 yd1 yd0 9f (1) (1) (1) (1) yd11 yd10 yd9 yd8 fir ?ltering and prescaling horizontal prescaling a0 (1) (1) xpsc5 xpsc4 xpsc3 xpsc2 xpsc1 xpsc0 accumulation length a1 (1) (1) xacl5 xacl4 xacl3 xacl2 xacl1 xacl0 prescaler dc gain and fir pre?lter control a2 pfuv1 pfuv0 pfy1 pfy0 xc2_1 xdcg2 xdcg1 xdcg0 reserved a3 (1) (1) (1) (1) (1) (1) (1) (1) luminance brightness control a4 brig7 brig6 brig5 brig4 brig3 brig2 brig1 brig0 luminance contrast control a5 cont7 cont6 cont5 cont4 cont3 cont2 cont1 cont0 chrominance saturation control a6 satn7 satn6 satn5 satn4 satn3 satn2 satn1 satn0 reserved a7 (1) (1) (1) (1) (1) (1) (1) (1) register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 142 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... horizontal phase scaling horizontal luminance scaling increment a8 xscy7 xscy6 xscy5 xscy4 xscy3 xscy2 xscy1 xscy0 a9 (1) (1) (1) xscy12 xscy11 xscy10 xscy9 xscy8 horizontal luminance phase offset aa xphy7 xphy6 xphy5 xphy4 xphy3 xphy2 xphy1 xphy0 reserved ab (1) (1) (1) (1) (1) (1) (1) (1) horizontal chrominance scaling increment ac xscc7 xscc6 xscc5 xscc4 xscc3 xscc2 xscc1 xscc0 ad (1) (1) (1) xscc12 xscc11 xscc10 xscc9 xscc8 horizontal chrominance phase offset ae xphc7 xphc6 xphc5 xphc4 xphc3 xphc2 xphc1 xphc0 reserved af (1) (1) (1) (1) (1) (1) (1) (1) vertical scaling vertical luminance scaling increment b0 yscy7 yscy6 yscy5 yscy4 yscy3 yscy2 yscy1 yscy0 b1 yscy15 yscy14 yscy13 yscy12 yscy11 yscy10 yscy9 yscy8 vertical chrominance scaling increment b2 yscc7 yscc6 yscc5 yscc4 yscc3 yscc2 yscc1 yscc0 b3 yscc15 yscc14 yscc13 yscc12 yscc11 yscc10 yscc9 yscc8 vertical scaling mode control b4 (1) (1) (1) ymir (1) (1) (1) ymode reserved b5 to b7 (1) (1) (1) (1) (1) (1) (1) (1) vertical chrominance phase offset 00 b8 ypc07 ypc06 ypc05 ypc04 ypc03 ypc02 ypc01 ypc00 vertical chrominance phase offset 01 b9 ypc17 ypc16 ypc15 ypc14 ypc13 ypc12 ypc11 ypc10 vertical chrominance phase offset 10 ba ypc27 ypc26 ypc25 ypc24 ypc23 ypc22 ypc21 ypc20 vertical chrominance phase offset 11 bb ypc37 ypc36 ypc35 ypc34 ypc33 ypc32 ypc31 ypc30 vertical luminance phase offset 00 bc ypy07 ypy06 ypy05 ypy04 ypy03 ypy02 ypy01 ypy00 vertical luminance phase offset 01 bd ypy17 ypy16 ypy15 ypy14 ypy13 ypy12 ypy11 ypy10 vertical luminance phase offset 10 be ypy27 ypy26 ypy25 ypy24 ypy23 ypy22 ypy21 ypy20 register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 143 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... vertical luminance phase offset 11 bf ypy37 ypy36 ypy35 ypy34 ypy33 ypy32 ypy31 ypy30 t ask b definition registers c0h to efh basic settings and acquisition window de?nition task handling control c0 conlh ofidc fskp2 fskp1 fskp0 rptsk strc1 strc0 x port formats and con?guration c1 conlv hldfv scsrc1 scsrc0 scrqe fsc2 fsc1 fsc0 input reference signal de?nition c2 xfdv xfdh xdv1 xdv0 xcode xdh xdq xcks i port formats and con?guration c3 icode i8_16 fysk foi1 foi0 fsi2 fsi1 fsi0 horizontal input window start c4 xo7 xo6 xo5 xo4 xo3 xo2 xo1 xo0 c5 (1) (1) (1) (1) xo11 xo10 xo9 xo8 horizontal input window length c6 xs7 xs6 xs5 xs4 xs3 xs2 xs1 xs0 c7 (1) (1) (1) (1) xs11 xs10 xs9 xs8 vertical input window start c8 yo7 yo6 yo5 yo4 yo3 yo2 yo1 yo0 c9 (1) (1) (1) (1) yo11 yo10 yo9 yo8 vertical input window length ca ys7 ys6 ys5 ys4 ys3 ys2 ys1 ys0 cb (1) (1) (1) (1) ys11 ys10 ys9 ys8 horizontal output window length cc xd7 xd6 xd5 xd4 xd3 xd2 xd1 xd0 cd (1) (1) (1) (1) xd11 xd10 xd9 xd8 vertical output window length ce yd7 yd6 yd5 yd4 yd3 yd2 yd1 yd0 cf (1) (1) (1) (1) yd11 yd10 yd9 yd8 fir ?ltering and prescaling horizontal prescaling d0 (1) (1) xpsc5 xpsc4 xpsc3 xpsc2 xpsc1 xpsc0 accumulation length d1 (1) (1) xacl5 xacl4 xacl3 xacl2 xacl1 xacl0 prescaler dc gain and fir pre?lter control d2 pfuv1 pfuv0 pfy1 pfy0 xc2_1 xdcg2 xdcg1 xdcg0 reserved d3 (1) (1) (1) (1) (1) (1) (1) (1) luminance brightness control d4 brig7 brig6 brig5 brig4 brig3 brig2 brig1 brig0 luminance contrast control d5 cont7 cont6 cont5 cont4 cont3 cont2 cont1 cont0 chrominance saturation control d6 satn7 satn6 satn5 satn4 satn3 satn2 satn1 satn0 reserved d7 (1) (1) (1) (1) (1) (1) (1) (1) register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 144 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... horizontal phase scaling horizontal luminance scaling increment d8 xscy7 xscy6 xscy5 xscy4 xscy3 xscy2 xscy1 xscy0 d9 (1) (1) (1) xscy12 xscy11 xscy10 xscy9 xscy8 horizontal luminance phase offset da xphy7 xphy6 xphy5 xphy4 xphy3 xphy2 xphy1 xphy0 reserved db (1) (1) (1) (1) (1) (1) (1) (1) horizontal chrominance scaling increment dc xscc7 xscc6 xscc5 xscc4 xscc3 xscc2 xscc1 xscc0 dd (1) (1) (1) xscc12 xscc11 xscc10 xscc9 xscc8 horizontal chrominance phase offset de xphc7 xphc6 xphc5 xphc4 xphc3 xphc2 xphc1 xphc0 reserved df (1) (1) (1) (1) (1) (1) (1) (1) vertical scaling vertical luminance scaling increment e0 yscy7 yscy6 yscy5 yscy4 yscy3 yscy2 yscy1 yscy0 e1 yscy15 yscy14 yscy13 yscy12 yscy11 yscy10 yscy9 yscy8 vertical chrominance scaling increment e2 yscc7 yscc6 yscc5 yscc4 yscc3 yscc2 yscc1 yscc0 e3 yscc15 yscc14 yscc13 yscc12 yscc11 yscc10 yscc9 yscc8 vertical scaling mode control e4 (1) (1) (1) ymir (1) (1) (1) ymode reserved e5 to e7 (1) (1) (1) (1) (1) (1) (1) (1) vertical chrominance phase offset 00 e8 ypc07 ypc06 ypc05 ypc04 ypc03 ypc02 ypc01 ypc00 vertical chrominance phase offset 01 e9 ypc17 ypc16 ypc15 ypc14 ypc13 ypc12 ypc11 ypc10 vertical chrominance phase offset 10 ea ypc27 ypc26 ypc25 ypc24 ypc23 ypc22 ypc21 ypc20 vertical chrominance phase offset 11 eb ypc37 ypc36 ypc35 ypc34 ypc33 ypc32 ypc31 ypc30 vertical luminance phase offset 00 ec ypy07 ypy06 ypy05 ypy04 ypy03 ypy02 ypy01 ypy00 register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 145 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... note 1. all unused control bits must be programmed with logic 0 to ensure compatibility to future enhancements. 18.2.2 i 2 c- bus detail 18.2.2.1 subaddress 00h table 153 chip version (cv) identi?cation; 00h[7:4]; read only register 18.2.2.2 subaddress 01h the programming of the horizontal increment delay is used to match internal processing delays to the delay of the adc. use reco mmended position only. table 154 horizontal increment delay; 01h[3:0] vertical luminance phase offset 01 ed ypy17 ypy16 ypy15 ypy14 ypy13 ypy12 ypy11 ypy10 vertical luminance phase offset 10 ee ypy27 ypy26 ypy25 ypy24 ypy23 ypy22 ypy21 ypy20 vertical luminance phase offset 11 ef ypy37 ypy36 ypy35 ypy34 ypy33 ypy32 ypy31 ypy30 function logic levels id7 id6 id5 id4 chip version (cv) cv3 cv2 cv1 cv0 function idel3 idel2 idel1 idel0 no update 1111 minimum delay 1110 recommended position 1000 maximum delay 0000 register function sub addr. (hex) d7 d6 d5 d4 d3 d2 d1 d0
2004 jun 29 146 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.3 subaddress 02h table 155 analog input control 1 (aico1); 02h[7:0] note 1. to take full advantage of the y/c modes 6 to 9 the i 2 c-bus bit byps (subaddress 09h, bit 7) should be set to logic 1 (full luminance bandwidth). bit description symbol value function 7 and 6 analog function select; see fig.15 fuse[1:0] 00 ampli?er plus anti-alias ?lter bypassed 01 10 ampli?er active 11 ampli?er plus anti-alias ?lter active 5 and 4 update hysteresis for 9-bit gain; see fig.16 gudl[1:0] 00 off 01 1 lsb 10 2 lsb 11 3 lsb 3 to 0 mode selection mode[3:0] 0000 mode 0 : cvbs (automatic gain) from ai11 (pin p13); see fig.59 0001 mode 1 : cvbs (automatic gain) from ai12 (pin p11); see fig.60 0010 mode 2 : cvbs (automatic gain) from ai21 (pin p10); see fig.61 0011 mode 3 : cvbs (automatic gain) from ai22 (pin p9); see fig.62 0100 mode 4 : cvbs (automatic gain) from ai23 (pin p7); see fig.63 0101 mode 5 : cvbs (automatic gain) from ai24 (pin p6); see fig.64 0110 mode 6 : y (automatic gain) from ai11 (pin p13) + c (gain adjustable via gai28 to gai20) from ai21 (pin p10); note 1; see fig.65 0111 mode 7 : y (automatic gain) from ai12 (pin p11) + c (gain adjustable via gai28 to gai20) from ai22 (pin p9); note 1; see fig.66 1000 mode 8 : y (automatic gain) from ai11 (pin p13) + c (gain adapted to y gain) from ai21 (pin p10); note 1; see fig.67 1001 mode 9 : y (automatic gain) from ai12 (pin p11) + c (gain adapted to y gain) from ai22 (pin p9); note 1; see fig.68 1010 to 1111 modes 10 to 15 : reserved
2004 jun 29 147 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb559 ai22 ai21 ai12 ai11 ad2 ad1 chroma luma ai24 ai23 fig.59 mode 0; cvbs (automatic gain). mhb560 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.60 mode 1; cvbs (automatic gain). mhb561 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.61 mode 2; cvbs (automatic gain). mhb562 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.62 mode 3; cvbs (automatic gain). mhb563 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.63 mode 4; cvbs (automatic gain). mhb564 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.64 mode 5; cvbs (automatic gain).
2004 jun 29 148 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae mhb565 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.65 mode 6; y + c (gain channel 2 adjusted via gai2). i 2 c-bus bit byps (subaddress 09h, bit 7) should be set to logic 1 (full luminance bandwidth). mhb566 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.66 mode 7; y + c (gain channel 2 adjusted via gai2). i 2 c-bus bit byps (subaddress 09h, bit 7) should be set to logic 1 (full luminance bandwidth). mhb567 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.67 mode 8; y + c (gain channel 2 adapted to y gain). i 2 c-bus bit byps (subaddress 09h, bit 7) should be set to logic 1 (full luminance bandwidth). mhb568 ai12 ai11 ad2 ad1 chroma luma ai22 ai21 ai24 ai23 fig.68 mode 9; y + c (gain channel 2 adapted to y gain). i 2 c-bus bit byps (subaddress 09h, bit 7) should be set to logic 1 (full luminance bandwidth).
2004 jun 29 149 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.4 subaddress 03h table 156 analog input control 2 (aico2); 03h[6:0] note 1. hlnrs = 1 should not be used in combination with wpoff = 0. 18.2.2.5 subaddress 04h table 157 analog input control 3 (aico3); static gain control channel 1; 03h[0] and 04h[7:0] 18.2.2.6 subaddress 05h table 158 analog input control 4 (aico4); static gain control channel 2; 03h[1] and 05h[7:0] bit description symbol value function 6 hl not reference select hlnrs 0 normal clamping if decoder is in unlocked state 1 (1) reference select if decoder is in unlocked state 5 agc hold during vertical blanking period vbsl 0 short vertical blanking (agc disabled during equalization and serration pulses) 1 long vertical blanking (agc disabled from start of pre-equalization pulses until start of active video (line 22 for 60 hz, line 24 for 50 hz) 4 white peak control off wpoff 0 (1) white peak control active 1 white peak control off 3 automatic gain control integration holdg 0 agc active 1 agc integration hold (freeze) 2 gain control ?x gafix 0 automatic gain controlled by mode3 to mode0 1 gain is user programmable via gai[17:10] and gai[27:20] 1 static gain control channel 2 sign bit gai28 see table 158 0 static gain control channel 1 sign bit gai18 see table 157 decimal value gain (db) sign bit 03h[0] control bits 7 to 0 gai18 gai17 gai16 gai15 gai14 gai13 gai12 gai11 gai10 0... - 3 0 00000000 ...144 0 0 1 0 0 1 0 0 0 0 145... 0 0 1 0 0 1 0 0 0 1 ...511 +6 1 1 1 1 1 1 1 1 1 decimal value gain (db) sign bit 03h[1] control bits 7 to 0 gai28 gai27 gai26 gai25 gai24 gai23 gai22 gai21 gai20 0... - 3 0 00000000 ...144 0 0 1 0 0 1 0 0 0 0 145... 0 0 1 0 0 1 0 0 0 1 ...511 +6 1 1 1 1 1 1 1 1 1
2004 jun 29 150 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.7 subaddress 06h table 159 horizontal sync start; 06h[7:0] 18.2.2.8 subaddress 07h table 160 horizontal sync stop; 07h[7:0] delay time (step size = 8/llc) control bits 7 to 0 hsb7 hsb6 hsb5 hsb4 hsb3 hsb2 hsb1 hsb0 - 128... - 109 (50 hz) forbidden (outside available central counter range) - 128... - 108 (60 hz) - 108 (50 hz)... 1 0 0 1 0 1 0 0 - 107 (60 hz)... 1 0 0 1 0 1 0 1 ...108 (50 hz) 0 1 1 0 1 1 0 0 ...107 (60 hz) 0 1 1 0 1 0 1 1 109...127 (50 hz) forbidden (outside available central counter range) 108...127 (60 hz) delay time (step size = 8/llc) control bits 7 to 0 hss7 hss6 hss5 hss4 hss3 hss2 hss1 hss0 - 128... - 109 (50 hz) forbidden (outside available central counter range) - 128... - 108 (60 hz) - 108 (50 hz)... 1 0 0 1 0 1 0 0 - 107 (60 hz)... 1 0 0 1 0 1 0 1 ...108 (50 hz) 0 1 1 0 1 1 0 0 ...107 (60 hz) 0 1 1 0 1 0 1 1 109...127 (50 hz) forbidden (outside available central counter range) 108...127 (60 hz)
2004 jun 29 151 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.9 subaddress 08h table 161 sync control; 08h[7:0] bit description symbol value function 7 automatic ?eld detection aufd 0 ?eld state directly controlled via fsel 1 automatic ?eld detection; recommended setting 6 ?eld selection fsel 0 50 hz, 625 lines 1 60 hz, 525 lines 5 forced odd/even toggle foet 0 odd/even signal toggles only with interlaced source 1 odd/even signal toggles ?eldwise even if source is non-interlaced 4 and 3 horizontal time constant selection htc[1:0] 00 tv mode, recommended for poor quality tv signals only; do not use for new applications 01 vtr mode, recommended if a de?ection control circuit is directly connected to the SAA7108AE; saa7109ae 10 reserved 11 fast locking mode; recommended setting 2 horizontal pll hpll 0 pll closed 1 pll open; horizontal frequency ?xed 1 and 0 vertical noise reduction vnoi[1:0] 00 normal mode; recommended setting 01 fast mode, applicable for stable sources only; automatic ?eld detection (aufd) must be disabled 10 free running mode 11 vertical noise reduction bypassed
2004 jun 29 152 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.10 subaddress 09h table 162 luminance control; 09h[7:0] 18.2.2.11 subaddress 0ah table 163 luminance brightness control: decoder part; 0ah[7:0] bit description symbol value function 7 chrominance trap/comb ?lter bypass byps 0 chrominance trap or luminance comb ?lter active; default for cvbs mode 1 chrominance trap or luminance comb ?lter bypassed; default for s-video mode 6 adaptive luminance comb ?lter ycomb 0 disabled (= chrominance trap enabled, if byps = 0) 1 active, if byps = 0 5 processing delay in non comb ?lter mode ldel 0 processing delay is equal to internal pipelining delay 1 one (ntsc standards) or two (pal standards) video lines additional processing delay 4 remodulation bandwidth for luminance; see figs 21 to 24 lubw 0 small remodulation bandwidth (narrow chrominance notch t higher luminance bandwidth) 1 large remodulation bandwidth (wider chrominance notch t smaller luminance bandwidth) 3 to 0 sharpness control, luminance ?lter characteristic; see fig.25 lufi[3:0] 0001 resolution enhancement ?lter; 8.0 db at 4.1 mhz 0010 resolution enhancement ?lter; 6.8 db at 4.1 mhz 0011 resolution enhancement ?lter; 5.1 db at 4.1 mhz 0100 resolution enhancement ?lter; 4.1 db at 4.1 mhz 0101 resolution enhancement ?lter; 3.0 db at 4.1 mhz 0110 resolution enhancement ?lter; 2.3 db at 4.1 mhz 0111 resolution enhancement ?lter; 1.6 db at 4.1 mhz 0000 plain 1000 low-pass ?lter; 2 db at 4.1 mhz 1001 low-pass ?lter; 3 db at 4.1 mhz 1010 low-pass ?lter; 3 db at 3.3 mhz; 4 db at 4.1 mhz 1011 low-pass ?lter; 3 db at 2.6 mhz; 8 db at 4.1 mhz 1100 low-pass ?lter; 3 db at 2.4 mhz; 14 db at 4.1 mhz 1101 low-pass ?lter; 3 db at 2.2 mhz; notch at 3.4 mhz 1110 low-pass ?lter; 3 db at 1.9 mhz; notch at 3.0 mhz 1111 low-pass ?lter; 3 db at 1.7 mhz; notch at 2.5 mhz offset control bits 7 to 0 dbri7 dbri6 dbri5 dbri4 dbri3 dbri2 dbri1 dbri0 255 (bright) 11111111 128 (itu level) 10000000 0 (dark) 00000000
2004 jun 29 153 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.12 subaddress 0bh table 164 luminance contrast control: decoder part; 0bh[7:0] 18.2.2.13 subaddress 0ch table 165 chrominance saturation control: decoder part; 0ch[7:0] 18.2.2.14 subaddress 0dh table 166 chrominance hue control: 0dh[7:0] gain control bits 7 to 0 dcon7 dcon6 dcon5 dcon4 dcon3 dcon2 dcon1 dcon0 1.984 (maximum) 01111111 1.063 (itu level) 01000100 1.0 01000000 0 (luminance off) 00000000 - 1 (inverse luminance) 11000000 - 2 (inverse luminance) 10000000 gain control bits 7 to 0 dsat7 dsat6 dsat5 dsat4 dsat3 dsat2 dsat1 dsat0 1.984 (maximum) 01111111 1.0 (itu level) 01000000 0 (colour off) 00000000 - 1 (inverse chrominance) 11000000 - 2 (inverse chrominance) 10000000 hue phase (deg) control bits 7 to 0 huec7 huec6 huec5 huec4 huec3 huec2 huec1 huec0 +178.6... 01111111 ...0... 00000000 ... - 180 10000000
2004 jun 29 154 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.15 subaddress 0eh table 167 chrominance control 1; 0eh[7:0] 18.2.2.16 subaddress 0fh table 168 chrominance gain control; 0fh[7:0] bit description symbol value function 50 hz/625 lines 60 hz/525 lines 7 clear dto cdto 0 disabled 1 every time cdto is set, the internal subcarrier dto phase is reset to 0 and the rtco output generates a logic 0 at time slot 68 (see document rtc functional description , available on request). so an identical subcarrier phase can be generated by an external device (e.g. an encoder). 6 to 4 colour standard selection cstd[2:0] 000 pal bgdhi (4.43 mhz) ntsc m (3.58 mhz) 001 ntsc 4.43 (50 hz) pal 4.43 (60 hz) 010 combination-pal n (3.58 mhz) ntsc 4.43 (60 hz) 011 ntsc n (3.58 mhz) pal m (3.58 mhz) 100 reserved ntsc-japan (3.58 mhz) 101 secam reserved 110 reserved; do not use 111 reserved; do not use 3 disable chrominance vertical ?lter and pal phase error correction dcvf 0 chrominance vertical ?lter and pal phase error correction on (during active video lines) 1 chrominance vertical ?lter and pal phase error correction permanently off 2 fast colour time constant fctc 0 nominal time constant 1 fast time constant for special applications 0 adaptive chrominance comb ?lter ccomb 0 disabled 1 active bit description symbol value function 7 automatic chrominance gain control acgc 0 on 1 programmable gain via cgain6 to cgain0; need to be set for secam standard 6 to 0 chrominance gain value (if acgc is set to logic 1) cgain[6:0] 000 0000 minimum gain (0.5) 010 0100 nominal gain (1.125) 111 1111 maximum gain (7.5)
2004 jun 29 155 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.17 subaddress 10h table 169 chrominance control 2; 10h[7:0] 18.2.2.18 subaddress 11h table 170 mode/delay control; 11h[7:0] bit description symbol value function 7 and 6 ?ne offset adjustment b - y component offu[1:0] 00 0 lsb 01 1 4 lsb 10 1 2 lsb 11 3 4 lsb 5 and 4 ?ne offset adjustment r - y component offv[1:0] 00 0 lsb 01 1 4 lsb 10 1 2 lsb 11 3 4 lsb 3 chrominance bandwidth; see figs 19 and 20 chbw 0 small 1 wide 2 to 0 combined luminance/chrominance bandwidth adjustment; see figs 19 to 25 lcbw[2:0] 000 smallest chrominance bandwidth or largest luminance bandwidth ... ... to ... 111 largest chrominance bandwidth or smallest luminance bandwidth bit description symbol value function 7 colour on colo 0 automatic colour killer enabled 1 colour forced on 6 polarity of rts1 output signal rtp1 0 non inverted 1 inverted 5 and 4 ?ne position of hs (steps in 2/llc) hdel[1:0] 00 0 01 1 10 2 11 3 3 polarity of rts0 output signal rtp0 0 non inverted 1 inverted 2 to 0 luminance delay compensation (steps in 2/llc) ydel[2:0] 100 - 4... 000 ...0... 011 ...3
2004 jun 29 156 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.19 subaddress 12h table 171 rt signal control: rts0 output; 12h[3:0] the polarity of any signal on rts0 can be inverted via rtp0[11h[3]]. note 1. function of hl is selectable via hlsel[13h[3]]: a) hlsel = 0: hl is standard horizontal lock indicator. b) hlsel = 1: hl is fast horizontal lock indicator (use is not recommended for sources with unstable timebase e.g. vcrs). rts0 output rtse03 rtse02 rtse01 rtse00 3-state 0000 constant low 0001 cref (13.5 mhz toggling pulse; see fig.32) 0010 cref2 (6.75 mhz toggling pulse; see fig.32) 0011 hl; horizontal lock indicator (note 1): 0100 hl = 0: unlocked hl = 1: locked vl; vertical and horizontal lock: 0101 vl = 0: unlocked vl = 1: locked dl; vertical and horizontal lock and colour detected: 0110 dl = 0: unlocked dl = 1: locked reserved 0111 href, horizontal reference signal; indicates 720 pixels valid data on the expansion port. the positive slope marks the beginning of a new active line. href is also generated during the vertical blanking interval; see fig.32. 1000 hs: 1001 programmable width in llc8 steps via hsb[7:0] 06h[7:0] and hss[7:0] 07h[7:0] fine position adjustment in llc2 steps via hdel[1:0] 11h[5:4]; see fig.32 hq; href gated with vgate 1010 reserved 1011 v123; vertical sync; see vertical timing diagrams figs 30 and 31 1100 vgate; programmable via vsta[8:0] 17h[0] 15h[7:0], vsto[8:0] 17h[1] 16h[7:0] and vgps[17h[2]] 1101 lsbs of the 9-bit adcs 1110 fid; position programmable via vsta[8:0] 17h[0] 15h[7:0]; see vertical timing diagrams figs 30 and 31 1111
2004 jun 29 157 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 172 rt signal control: rts1 output; 12h[7:4] the polarity of any signal on rts1 can be inverted via rtp1[11h[6]]. note 1. function of hl is selectable via hlsel[13h[3]]: a) hlsel = 0: hl is standard horizontal lock indicator. b) hlsel = 1: hl is fast horizontal lock indicator (use is not recommended for sources with unstable timebase e.g. vcrs). rts1 output control rtse13 rtse12 rtse11 rtse10 3-state 0000 constant low 0001 cref (13.5 mhz toggling pulse; see fig.32) 0010 cref2 (6.75 mhz toggling pulse; see fig.32) 0011 hl; horizontal lock indicator (note 1): 0100 hl = 0: unlocked hl = 1: locked vl; vertical and horizontal lock: 0101 vl = 0: unlocked vl = 1: locked dl; vertical and horizontal lock and colour detected: 0110 dl = 0: unlocked dl = 1: locked reserved 0111 href, horizontal reference signal: indicates 720 pixels valid data on the expansion port. the positive slope marks the beginning of a new active line. href is also generated during the vertical blanking interval; see fig.32. 1000 hs: 1001 programmable width in llc8 steps via hsb[7:0] 06h[7:0] and hss[7:0] 07h[7:0] fine position adjustment in llc2 steps via hdel[1:0] 11h[5:4]; see fig.32 hq; href gated with vgate 1010 reserved 1011 v123; vertical sync; see vertical timing diagrams figs 30 and 31 1100 vgate; programmable via vsta[8:0] 17h[0] 15h[7:0], vsto[8:0] 17h[1] 16h[7:0] and vgps[17h[2]] 1101 reserved 1110 fid; position programmable via vsta[8:0] 17h[0] 15h[7:0]; see vertical timing diagrams figs 30 and 31 1111
2004 jun 29 158 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.20 subaddress 13h table 173 rt/x port output control; 13h[7:0] bit description symbol value function 7 rtco output enable rtce 0 3-state 1 enabled 6 x port xrh output selection xrhs 0 href; see fig.32 1 hs: programmable width in llc8 steps via hsb[7:0] 06h[7:0] and hss[7:0] 07h[7:0] fine position adjustment in llc2 steps via hdel[1:0] 11h[5:4]; see fig.32 5 and 4 x port xrv output selection xrvs[1:0] 00 v123; see figs 30 and 31 01 itu 656 related ?eld id; see figs 30 and 31 10 inverted v123 11 inverted itu 656 related ?eld id 3 horizontal lock indicator selection hlsel 0 copy of inverted hlck status bit (default) 1 fast horizontal lock indicator (for special applications only) 2 to 0 xpd7 to xpd0 (port output format selection); see section 10.4 ofts[2:0] 000 itu 656 001 itu 656 like format with modi?ed ?eld blanking according to vgate position (programmable via vsta[8:0] 17h[0] 15h[7:0], vsto[8:0] 17h[1] 16h[7:0] and vgps[17h[2]]) 010 y-c b -c r 4:2:2 8-bit format (no sav/eav codes inserted) 011 reserved 100 multiplexed ad2/ad1 bypass (bits 8 to 1) dependent on mode settings; if both adcs are selected ad2 is output at cref = 1 and ad1 is output at cref = 0 101 multiplexed ad2/ad1 bypass (bits 7 to 0) dependent on mode settings; if both adcs are selected ad2 is output at cref = 1 and ad1 is output at cref = 0 110 reserved 111 multiplexed adc msb/lsb bypass dependent on mode settings; only one adc should be selected at a time; adx8 to adx1 are outputs at cref = 1 and adx7 to adx0 are outputs at cref = 0
2004 jun 29 159 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.21 subaddress 14h table 174 analog/adc/compatibility control; 14h[7:0] bit description symbol value function 7 compatibility bit for saa7199 cm99 0 off (default) 1 on (to be set only if saa7199 is used for re-encoding in conjunction with rtco active ) 6 update time interval for agc value uptcv 0 horizontal update (once per line) 1 vertical update (once per ?eld) 5 and 4 analog test select aosl[1:0] 00 aout connected to internal test point 1 01 aout connected to input ad1 10 aout connected to input ad2 11 aout connected to internal test point 2 3 xtoutd output enable xtoute 0 pin p4 (xtoutd) 3-stated 1 pin p4 (xtoutd) enabled 2 decoder status byte selection; see table 180 oldsb 0 standard 1 backward compatibility to saa7112 1 and 0 adc sample clock phase delay apck[1:0] 00 application dependent 01 10 11
2004 jun 29 160 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... 18.2.2.22 subaddress 15h table 175 vgate start; fid polarity change; 17h[0] and 15h[7:0] start of vgate pulse (low-to-high transition) and polarity change of fid pulse, vgps = 0; see figs 30 and 31. field frame line counting decimal value msb 17h[0] control bits 7 to 0 vsta8 vsta7 vsta6 vsta5 vsta4 vsta3 vsta2 vsta1 vsta0 50hz1st 1 312 1 00111000 2nd 314 1st 2 0... 0 00000000 2nd 315 1st 312 ...310 1 00110111 2nd 625 60hz1st 4 262 1 00000110 2nd 267 1st 5 0... 0 00000000 2nd 268 1st 265 ...260 1 00000101 2nd 3
2004 jun 29 161 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae this text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader .this text is here in _ white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader.this text is here inthis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the acrobat reader. white to force landscape pages to be ... 18.2.2.23 subaddress 16h table 176 vgate stop; 17h[1] and 16h[7:0] stop of vgate pulse (high-to-low transition), vgps = 0; see figs 30 and 31. field frame line counting decimal value msb 17h[1] control bits 7 to 0 vsto8 vsto7 vsto6 vsto5 vsto4 vsto3 vsto2 vsto1 vsto0 50 hz 1st 1 312 1 0 0 1 1 1 0 0 0 2nd 314 1st 2 0... 0 0 0 0 0 0 0 0 0 2nd 315 1st 312 ...310 1 0 0 1 1 0 1 1 1 2nd 625 60 hz 1st 4 262 1 0 0 0 0 0 1 1 0 2nd 267 1st 5 0... 0 0 0 0 0 0 0 0 0 2nd 268 1st 265 ...260 1 0 0 0 0 0 1 0 1 2nd 3
2004 jun 29 162 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.24 subaddress 17h table 177 miscellaneous/vgate msbs; 17h[7:6] and 17h[2:0] 18.2.2.25 subaddress 18h table 178 raw data gain control; rawg[7:0] 18h[7:0]; see fig.27 18.2.2.26 subaddress 19h table 179 raw data offset control; rawo[7:0] 19h[7:0]; see fig.27 bit description symbol value function 7 llc output enable llce 0 enable 1 3-state 6 llc2 output enable llc2e 0 enable 1 3-state 2 alternative vgate position vgps 0 vgate position according to tables 175 and 176 1 vgate occurs one line earlier during ?eld 2 1 msb vgate stop vsto8 see table 176 0 msb vgate start vsta8 see table 175 gain control bits 7 to 0 rawg7 rawg6 rawg5 rawg4 rawg3 rawg2 rawg1 rawg0 255 (double amplitude) 01111111 128 (nominal level) 01000000 0 (off) 00000000 offset control bits 7 to 0 rawo7 rawo6 rawo5 rawo4 rawo3 rawo2 rawo1 rawo0 - 128lsb 00000000 0lsb 10000000 +128 lsb 11111111
2004 jun 29 163 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.2.27 subaddress 1fh table 180 status byte video decoder; 1fh[7:0]; read only register 18.2.3 p rogramming register audio clock generation see equations in section 9.6 and examples in tables 35 and 36. 18.2.3.1 subaddresses 30h to 32h table 181 audio master clock (amclk) cycles per ?eld bit description i 2 c-bus control bit oldsb 14h[2] value function 7 status bit for interlace detection intl - 0 non-interlaced 1 interlaced 6 status bit for horizontal and vertical loop hlvln 0 0 both loops locked 1 unlocked status bit for locked horizontal frequency hlck 1 0 locked 1 unlocked 5 identi?cation bit for detected ?eld frequency fidt - 050hz 160hz 4 gain value for active luminance channel is limited; maximum (top) glimt - 0 not active 1 active 3 gain value for active luminance channel is limited; minimum (bottom) glimb - 0 not active 1 active 2 white peak loop is activated wipa - 0 not active 1 active 1 copy protected source detected according to macrovision version up to 7.01 copro 0 0 not active 1 active slow time constant active in wipa mode sltca 1 0 not active 1 active 0 ready for capture (all internal loops locked) rdcap 0 0 not active 1 active colour signal in accordance with selected standard has been detected code 1 0 not active 1 active subaddress control bits 7 to 0 30h acpf7 acpf6 acpf5 acpf4 acpf3 acpf2 acpf1 acpf0 31h acpf15 acpf14 acpf13 acpf12 acpf11 acpf10 acpf9 acpf8 32h ------ acpf17 acpf16
2004 jun 29 164 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.3.2 subaddresses 34h to 36h table 182 audio master clock (amclk) nominal increment 18.2.3.3 subaddress 38h table 183 clock ratio audio master clock (amxclk) to serial bit clock (asclk) 18.2.3.4 subaddress 39h table 184 clock ratio serial bit clock (asclk) to channel select clock (alrclk) 18.2.3.5 subaddress 3ah table 185 audio clock control; 3ah[3:0] 18.2.4 p rogramming register vbi data slicer 18.2.4.1 subaddress 40h table 186 slicer control 1; 40h[6:4] subaddress control bits 7 to 0 34h acni7 acni acni5 acni4 acni3 acni2 acni1 acni0 35h acni15 acni14 acni13 acni12 acni11 acni10 acni9 acni8 36h -- acni21 acni20 acni19 acni18 acni17 acni16 subaddress control bits 7 to 0 38h -- sdiv5 sdiv4 sdiv3 sdiv2 sdiv1 sdiv0 subaddress control bits 7 to 0 39h -- lrdiv5 lrdiv4 lrdiv3 lrdiv2 lrdiv1 lrdiv0 bit description symbol value function 3 audio pll modes apll 0 pll active, amclk is ?eld-locked 1 pll open, amclk is free-running 2 audio master clock vertical reference amvr 0 vertical reference pulse is taken from internal decoder 1 vertical reference is taken from xrv input (expansion port) 1 alrclk phase lrph 0 alrclk edges triggered by falling edges of asclk 1 alrclk edges triggered by rising edges of asclk 0 asclk phase scph 0 asclk edges triggered by falling edges of amclk 1 asclk edges triggered by rising edges of amclk bit description symbol value function 6 hamming check ham_n 0 hamming check for 2 bytes after framing code, dependent on data type (default) 1 no hamming check 5 framing code error fce 0 one framing code error allowed 1 no framing code errors allowed 4 amplitude searching hunt_n 0 amplitude searching active (default) 1 amplitude searching stopped
2004 jun 29 165 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.4.2 subaddresses 41h to 57h table 187 line control register; lcr2 to lcr24 (41h to 57h); see sections 9.2 and 9.4 18.2.4.3 subaddress 58h table 188 programmable framing code; slicer set 58h[7:0]; see tables 28 and 187 18.2.4.4 subaddress 59h table 189 horizontal offset for slicer; slicer set 59h and 5bh name description framing code bits 7 to 4 (41h to 57h) bits3to0 (41h to 57h) dt[3:0] 62h[3:0] (field 1) dt[3:0] 62h[3:0] (field 2) wst625 teletext eurowst, ccst 27h 0000 0000 cc625 european closed caption 001 0001 0001 vps video programming service 9951h 0010 0010 wss wide screen signalling bits 1e3c1fh 0011 0011 wst525 us teletext (wst) 27h 0100 0100 cc525 us closed caption (line 21) 001 0101 0101 test line video component signal, vbi region - 0110 0110 intercast raw data - 0111 0111 general text teletext programmable 1000 1000 vitc625 vitc/ebu time codes (europe) programmable 1001 1001 vitc525 vitc/smpte time codes (usa) programmable 1010 1010 reserved reserved - 1011 1011 nabts us nabts - 1100 1100 japtext moji (japanese) programmable (a7h) 1101 1101 jfs japanese format switch (l20/22) programmable 1110 1110 active video video component signal, active video region (default) - 1111 1111 framing code for programmable data types control bits 7 to 0 default value fc[7:0] = 40h horizontal offset control bits 5bh[2:0] control bits 59h[7:0] recommended value hoff[10:8] = 3h hoff[7:0] = 47h
2004 jun 29 166 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.4.5 subaddress 5ah table 190 vertical offset for slicer; slicer set 5ah and 5bh 18.2.4.6 subaddress 5bh table 191 field offset, and msbs for horizontal and vertical offsets; slicer set 5bh[7:6] see sections 18.2.4.4 and 18.2.4.5 for hoff[10:8] 5bh[2:0] and voff8[5bh[4]]. 18.2.4.7 subaddress 5dh table 192 header and data identi?cation (did; itu 656) code control; slicer set 5dh[7:0] 18.2.4.8 subaddress 5eh table 193 sliced data identi?cation (sdid) code; slicer set 5eh[5:0] vertical offset control bit 5bh[4] voff8 control bits 5ah[7:0] voff[7:0] minimum value 0 0 00h maximum value 312 1 38h value for 50 hz 625 lines input 0 03h value for 60 hz 525 lines input 0 06h bit description symbol value function 7 ?eld offset foff 0 no modi?cation of internal ?eld indicator (default for 50 hz 625 lines input sources) 1 invert ?eld indicator (default for 60 hz 525 lines input sources) 6 recode recode 0 let data unchanged (default) 1 convert 00h and ffh data bytes into 03h and fch bit description symbol value function 7 ?eld id and v-blank selection for text output (f and v reference selection) fvref 0 f and v output of slicer is lcr table dependent 1 f and v output is taken from decoder real time signals even_itu and vblnk_itu 5to0 default; did[5:0] = 00h did[5:0] 00 0000 anc header framing ; see fig.39 and table 34 special cases of did programming 11 1110 did[5:0] = 3eh sav/eav framing, with fvref = 1 11 1111 did[5:0] = 3fh sav/eav framing, with fvref = 0 bit description symbol value function 5 to 0 sdid codes sdid[5:0] 00h default
2004 jun 29 167 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.4.9 subaddress 60h table 194 slicer status byte 0; 60h[6:2]; read only register 18.2.4.10 subaddresses 61h and 62h table 195 slicer status byte 1; 61h[5:0] and slicer status byte 2; 62h[7:0]; read only registers 18.2.5 p rogramming register interfaces and scaler part 18.2.5.1 subaddress 80h table 196 global control 1; global set 80h[6:4] swrst moved to subaddress 88h[5]; note 1. note 1. x = dont care. bit description symbol value function 6 framing code valid fc8v 0 no framing code (0 error) in the last frame detected 1 framing code with 0 error detected 5 framing code valid fc7v 0 no framing code (1 error) in the last frame detected 1 framing code with 1 error detected 4 vps valid vpsv 0 no vps in the last frame 1 vps detected 3 palplus valid ppv 0 no palplus in the last frame 1 palplus detected 2 closed caption valid ccv 0 no closed caption in the last frame 1 closed caption detected subaddress bit symbol description 61h 5 f21_n ?eld id as seen by the vbi slicer; for ?eld 1: bit 5 = 0 4 to 0 ln[8:4] line number 62h 7 to 4 ln[3:0] 3 to 0 dt[3:0] data type; according to table 28 task enable control control bits 6 to 4 smod teb tea task of register set a is disabled x x 0 task of register set a is enabled x x 1 task of register set b is disabled x 0 x task of register set b is enabled x 1 x the scaler window de?nes the f and v timing of the scaler output 0xx vbi data slicer de?nes the f and v timing of the scaler output 1 x x
2004 jun 29 168 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 197 global control 1; global set 80h[3:0]; note 1 notes 1. although the iclko i/o is independent of icks2 and icks3, this selection can only be used if icks2 = 1. 2. x = dont care. 18.2.5.2 subaddresses 83h to 87h table 198 x port i/o enable and output clock phase control; global set 83h[5:4] table 199 x port i/o enable and output clock phase control; global set 83h[2:0] note 1. x = dont care i port and scaler back-end clock selection control bits 3 to 0 icks3 icks2 icks1 icks0 iclk output and back-end clock is line-locked clock llc from decoder x x 0 0 iclk output and back-end clock is xclk from x port x x 0 1 iclk output is llc and back-end clock is llc2 clock x x (2) 10 back-end clock is the iclk input x x 1 1 idq pin carries the data quali?er x 0 x x idq pin carries a gated back-end clock (idq and clk) x 1 x x idq generation only for valid data 0 x x x idq quali?es valid data inside the scaling region and all data outside the scaling region 1xxx output clock phase control control bits 5 and 4 xpck1 xpck0 xclk default output phase, recommended value 00 xclk output inverted 0 1 xclk phase shifted by about 3 ns 1 0 xclk output inverted and shifted by about 3 ns 1 1 x port i/o enable control bits 2 to 0 xrqt xpe1 xpe0 x port output is disabled by software x (1) 00 x port output is enabled by software x 0 1 x port output is enabled by pin xtri at logic 0 x 1 0 x port output is enabled by pin xtri at logic 1 x 1 1 xrdy output signal is a/b task ?ag from event handler (a = 1) 0 x x xrdy output signal is ready signal from scaler path (xrdy = 1 means SAA7108AE; saa7109ae is ready to receive data) 1xx
2004 jun 29 169 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 200 i port signal de?nitions; global set 84h[7:6] and 86h[5] table 201 i port signal de?nitions; global set 84h[5:4] and 86h[4] table 202 i port output signal de?nitions; global set 84h[3:0]; note 1 note 1. x = dont care. i port signal definitions control bits 86h[5] 84h[7:6] idg02 idg01 idg00 igp0 is output ?eld id, as de?ned by ofidc[90h[6]] 0 0 0 igp0 is a/b task ?ag, as de?ned by conlh[90h[7]] 0 0 1 igp0 is sliced data ?ag, framing the sliced vbi data at the i port 0 1 0 igp0 is set to logic 0 (default polarity) 011 igp0 is the output fifo almost ?lled ?ag 1 0 0 igp0 is the output fifo over?ow ?ag 1 0 1 igp0 is the output fifo almost full ?ag, level to be programmed in subaddress 86h 1 1 0 igp0 is the output fifo almost empty ?ag, level to be programmed in subaddress 86h 1 1 1 i port signal definitions control bits 86h[4] 84h[5:4] idg12 idg11 idg10 igp1 is output ?eld id, as de?ned by ofidc[90h[6]] 0 0 0 igp1 is a/b task ?ag, as de?ned by conlh[90h[7]] 0 0 1 igp1 is sliced data ?ag, framing the sliced vbi data at the i port 0 1 0 igp1 is set to logic 0 (default polarity) 011 igp1 is the output fifo almost ?lled ?ag 1 0 0 igp1 is the output fifo over?ow ?ag 1 0 1 igp1 is the output fifo almost full ?ag, level to be programmed in subaddress 86h 1 1 0 igp1 is the output fifo almost empty ?ag, level to be programmed in subaddress 86h 1 1 1 i port output signal definitions control bits 3 to 0 idv1 idv0 idh1 idh0 igph is a h gate signal, framing the scaler output x x 0 0 igph is an extended h gate (framing h gate during scaler output and scaler input h reference outside the scaler window) xx0 1 igph is a horizontal trigger pulse, on active going edge of h gate x x 1 0 igph is a horizontal trigger pulse, on active going edge of extended h gate x x 1 1 igpv is a v gate signal, framing scaled output lines 0 0 x x igpv is the v reference signal from scaler input 0 1 x x igpv is a vertical trigger pulse, derived from v gate 1 0 x x igpv is a vertical trigger pulse derived from input v reference 1 1 x x
2004 jun 29 170 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 203 x port signal de?nitions text slicer; global set 85h[7:5]; note 1 note 1. x = dont care. table 204 i port reference signal polarities; global set 85h[4:0]; note 1 note 1. x = dont care. x port signal definitions text slicer control bits 7 to 5 iswp1 iswp0 illv video data limited to range 1 to 254 x x 0 video data limited to range 8 to 247 x x 1 dword byte swap, in?uences serial output timing d0 d1 d2 d3 t ff 00 00 sav c b 0y0c r 0y1 00x d1 d0 d3 d2 t 00 ff sav 00 y0 c b 0y1c r 001x d2 d3 d0 d1 t 00savff00c r 0y1c b 0y0 1 0 x d3 d2 d1 d0 t sav0000ffy1c r 0y0c b 011x i port reference signal polarities control bits 4 to 0 ig0p ig1p irvp irhp idqp idq at default polarity (1 = active) xxxx0 idq is inverted xxxx1 igph at default polarity (1 = active) x x x 0 x igph is inverted x x x 1 x igpv at default polarity (1 = active) x x 0 x x igpv is inverted x x 1 x x igp1 at default polarity x 0 x x x igp1 is inverted x 1 x x x igp0 at default polarity 0 xxxx igp0 is inverted 1 xxxx
2004 jun 29 171 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 205 i port fifo ?ag control and arbitration; global set 86h[7:4]; note 1 note 1. x = dont care. table 206 i port fifo ?ag control and arbitration; global set 86h[3:0]; note 1 note 1. x = dont care. function control bits 7 to 4 vitx1 vitx0 idg02 idg12 see subaddress 84h: idg11 and idg10 x x x 0 xxx1 see subaddress 84h: idg01 and idg00 x x 0 x xx1x i port signal de?nitions i port data output inhibited 0 0 x x only video data are transferred 0 1 x x only text data are transferred (no eav, sav will occur) 1 0 x x text and video data are transferred, text has priority 1 1 x x i port fifo flag control and arbitration control bits 3 to 0 ffl1 ffl0 fel1 fel0 fae fifo ?ag almost empty level <16 dwords x x 0 0 <8 dwords x x 0 1 <4 dwords x x 1 0 0 dwords x x 1 1 faf fifo ?ag almost full level 3 16 dwords 0 0 x x 3 24 dwords 0 1 x x 3 28 dwords 1 0 x x 32 dwords 1 1 x x
2004 jun 29 172 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 207 i port i/o enable, output clock and gated clock phase control; global set 87h[7:4]; note 1 notes 1. x = dont care. 2. ipck3 and ipck2 only affects the gated clock (subaddress 80h, bit icks2 = 1). table 208 i port i/o enable, output clock and gated clock phase control; global set 87h[1:0] output clock and gated clock phase control control bits 7 to 4 ipck3 (2) ipck2 (2) ipck1 ipck0 iclk default output phase x x 0 0 iclk phase shifted by 1 2 clock cycle t recommended for icks1 = 1 and icks0 = 0 (subaddress 80h) xx0 1 iclk phase shifted by about 3 ns x x 1 0 iclk phase shifted by 1 2 clock cycle + approximately 3ns t alternatively to setting 01 xx1 1 idq = gated clock default output phase 0 0 x x idq = gated clock phase shifted by 1 2 clock cycle t recommended for gated clock output 01xx idq = gated clock phase shifted by approximately 3 ns 1 0 x x idq = gated clock phase shifted by 1 2 clock cycle + approximately 3ns t alternatively to setting 01 11xx i port i/o enable control bits 1 and 0 ipe1 ipe0 i port output is disabled by software 0 0 i port output is enabled by software 0 1 i port output is enabled by pin itri at logic 0 1 0 i port output is enabled by pin itri at logic 1 1 1
2004 jun 29 173 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.5.3 subaddress 88h table 209 power save control; global set 88h[7:4]; note 1 notes 1. x = dont care. 2. bit swrst is now located here. table 210 power save control; global set 88h[3] and 88h[1:0]; note 1 note 1. x = dont care. power save control control bits 7 to 4 ch4en ch2en swrst (2) dprog dprog = 0 after reset x x x 0 dprog = 1 can be used to assign that the device has been programmed; this bit can be monitored in the scalers status byte, bit prdon; if dprog was set to logic 1 and prdon status bit shows a logic 0, a power-up or start-up fail has occurred xxx1 scaler path is reset to its idle state, software reset x x 0 x scaler is switched back to operation x x 1 x ad1x analog channel is in power-down mode x 0 x x ad1x analog channel is active x 1 x x ad2x analog channel is in power-down mode 0 x x x ad2x analog channel is active 1 x x x power save control control bits 3, 1 and 0 slm3 slm1 slm0 decoder and vbi slicer are in operational mode x x 0 decoder and vbi slicer are in power-down mode; scaler only operates, if scaler input and iclk source is the x port (refer to subaddresses 80h and 91h/c1h) xx1 scaler is in operational mode x 0 x scaler is in power-down mode; scaler in power-down stops i port output x 1 x audio clock generation active 0 x x audio clock generation in power-down and output disabled 1 x x
2004 jun 29 174 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.5.4 subaddress 8fh table 211 status information scaler part; 8fh[7:0]; read only register note 1. status information is unsynchronized and shows the actual status at the time of i 2 c-bus read. 18.2.5.5 subaddresses 90h and c0h table 212 task handing control; register set a [90h[7:6]] and b [c0h[7:6]]; note 1 note 1. x = dont care. table 213 task handling control; register set a [90h[5:3]] and b [c0h[5:3]] bit i 2 c-bus status bit function (1) 7 xtri status on input pin xtri, if not used for 3-state control, usable as hardware ?ag for software use 6 itri status on input pin itri, if not used for 3-state control, usable as hardware ?ag for software use 5 ffil status of the internal fifo almost ?lled ?ag 4 ffov status of the internal fifo over?ow ?ag 3 prdon copy of bit dprog, can be used to detect power-up and start-up fails 2 errof error ?ag of scalers output formatter, normally set, if the output processing needs to be interrupted, due to input/output data rate con?icts, e.g. if output data rate is much too low and all internal fifo capacity used 1 fidsci status of the ?eld sequence id at the scalers input 0 fidsco status of the ?eld sequence id at the scalers output, scaler processing dependent event handler control control bits 7 and 6 conlh ofidc output ?eld id is ?eld id from scaler input x 0 output ?eld id is task status ?ag, which changes every time an selected task is activated (not synchronized to input ?eld id) x1 scaler sav/eav byte bit 7 and task ?ag = 1, default 0x scaler sav/eav byte bit 7 and task ?ag = 0 1 x event handler control control bits 5 to 3 fskp2 fskp1 fskp0 active task is carried out directly 0 0 0 1 ?eld is skipped before active task is carried out 0 0 1 ... ?elds are skipped before active task is carried out ... ... ... 6 ?elds are skipped before active task is carried out 1 1 0 7 ?elds are skipped before active task is carried out 1 1 1
2004 jun 29 175 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 214 task handling control; register set a [90h[2:0]] and b [c0h[2:0]]; note 1 note 1. x = dont care. 18.2.5.6 subaddresses 91h to 93h table 215 x port formats and con?guration; register set a [91h[7:3]] and b [c1h[7:3]]; note 1 note 1. x = dont care. event handler control control bits 2 to 0 rptsk strc1 strc0 event handler triggers immediately after ?nishing a task x 0 0 event handler triggers with next v-sync x 0 1 event handler triggers with ?eld id = 0 x 1 0 event handler triggers with ?eld id = 1 x 1 1 if active task is ?nished, handling is taken over by the next task 0 x x active task is repeated once, before handling is taken over by the next task 1 x x scaler input format and configuration source selection control bits 7 to 3 conlv hldfv scsrc1 scsrc0 scrqe only if xrqt[83h[2]] = 1: scaler input source reacts on SAA7108AE; saa7109ae request xxxx0 scaler input source is a continuous data stream, which cannot be interrupted (must be logic 1 if SAA7108AE; saa7109ae decoder part is source of scaler or xrqt[83h[2]] = 0) xxxx1 scaler input source is data from decoder, data type is provided according to table 28 xx0 0x scaler input source is y-c b -c r data from x port x x 0 1 x scaler input source is raw digital cvbs from selected analog channel, for backward compatibility only, further use is not recommended xx1 0x scaler input source is raw digital cvbs (or 16-bit y + c b -c r ,if no 16-bit output are active) from x port xx1 1x sav/eav code bits 6 and 5 (f and v) may change between sav and eav x0xxx sav/eav code bits 6 and 5 (f and v) are synchronized to scalers output line start x1xxx sav/eav code bit 5 (v) and v gate on pin igpv as generated by the internal processing; see fig.45 0xxxx sav/eav code bit 5 (v) and v gate are inverted 1 xxxx
2004 jun 29 176 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 216 x port formats and con?guration; register set a [91h[2:0]] and b [c1h[2:0]]; note 1 notes 1. x = dont care. 2. fsc2 and fsc1 only to be used, if x port input source dont provide chroma information for every input line. x port input stream must contain dummy chroma bytes. table 217 x port input reference signal de?nitions; register set a [92h[7:4]] and b [c2h[7:4]]; note 1 note 1. x = dont care. scaler input format and configuration format control control bits 2 to 0 fsc2 (2) fsc1 (2) fsc0 input is y-c b -c r 4:2:2 like sampling scheme x x 0 input is y-c b -c r 4:1:1 like sampling scheme x x 1 chroma is provided every line, default 00x chroma is provided every 2nd line 0 1 x chroma is provided every 3rd line 1 0 x chroma is provided every 4th line 1 1 x x port input reference signal definitions control bits 7 to 4 xfdv xfdh xdv1 xdv0 rising edge of xrv input and decoder v123 is vertical reference x x x 0 falling edge of xrv input and decoder v123 is vertical reference x x x 1 xrv is a v-sync or v gate signal x x 0 x xrv is a frame sync, v pulses are generated internally on both edges of fs input xx1x x port ?eld id is state of xrh at reference edge on xrv (de?ned by xfdv) x0xx field id (decoder and x port ?eld id) is inverted x 1 x x reference edge for ?eld detection is falling edge of xrv 0 x x x reference edge for ?eld detection is rising edge of xrv 1 x x x
2004 jun 29 177 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 218 x port input reference signal de?nitions; register set a [92h[3:0]] and b [c2h[3:0]]; note 1 note 1. x = dont care. table 219 i port output format and con?guration; register set a [93h[7:5]] and b [c3h[7:5]]; note 1 note 1. x = dont care. x port input reference signal definitions control bits 3 to 0 xcode xdh xdq xcks xclk input clock and xdq input quali?er are needed x x x 0 data rate is de?ned by xclk only, no xdq signal used x x x 1 data are quali?ed at xdq input at logic 1 x x 0 x data are quali?ed at xdq input at logic 0 x x 1 x rising edge of xrh input is horizontal reference x 0 x x falling edge of xrh input is horizontal reference x 1 x x reference signals are taken from xrh and xrv 0 x x x reference signals are decoded from eav and sav 1 x x x i port output formats and configuration control bits 7 to 5 icode i8_16 fysk all lines will be output x x 0 skip the number of leading y only lines, as de?ned by foi1 and foi0 x x 1 dwords are transferred byte wise, see subaddress 85h bits iswp1 and iswp0 x 0 x dwords are transferred 16-bit word wise via ipd and hpd, see subaddress 85h bits iswp1 and iswp0 x1x no itu 656 like sav/eav codes are available 0 x x itu 656 like sav/eav codes are inserted in the output data stream, framed by a quali?er 1xx
2004 jun 29 178 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 220 i port output format and con?guration; register set a [93h[4:0]] and b [c3h[4:0]]; note 1 note 1. x = dont care. 18.2.5.7 subaddresses 94h to 9bh table 221 horizontal input window start; register set a [94h[7:0]; 95h[3:0]] and b [c4h[7:0]; c5h[3:0]] note 1. reference for counting are luminance samples. i port output formats and configuration control bits 4 to 0 foi1 foi0 fsi2 fsi1 fsi0 4:2:2 dw ord formatting x x 0 0 0 4:1:1 dw ord formatting x x 0 0 1 4:2:0, only every 2nd line y + c b -c r output, in between y only output xx010 4:1:0, only every 4th line y + c b -c r output, in between y only output xx011 y only x x 1 0 0 not de?ned x x 1 0 1 not de?ned x x 1 1 0 not de?ned x x 1 1 1 no leading y only line, before 1st y + c b -c r line is output 0 0 x x x 1 leading y only line, before 1st y + c b -c r line is output 0 1 x x x 2 leading y only lines, before 1st y + c b -c r line is output 1 0 x x x 3 leading y only lines, before 1st y + c b -c r line is output 1 1 x x x horizontal input acquisition window definition offset in x (horizontal) direction (1) control bits a [95h[3:0]] b [c5h[3:0]] a [94h[7:0]] b [c4h[7:0]] xo11 xo10 xo9 xo8 xo7 xo6 xo5 xo4 xo3 xo2 xo1 xo0 a minimum of 2 should be kept, due to a line counting mismatch 0 0 0000000010 odd offsets are changing the c b -c r sequence in the output stream to c r -c b sequence 0 0 0000000011 maximum possible pixel offset = 4095 1 1 1111111111
2004 jun 29 179 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 222 horizontal input window length; register set a [96h[7:0]; 97h[3:0]] and b [c6h[7:0]; c7h[3:0]] note 1. reference for counting are luminance samples. table 223 vertical input window start; register set a [98h[7:0]; 99h[3:0]] and b [c8h[7:0]; c9h[3:0]] note 1. for trigger condition: strc[1:0] 90h[1:0] = 00; yo + ys > (number of input lines per field - 2), will result in field dropping. other trigger conditions: yo > (number of input lines per field - 2), will result in field dropping. table 224 vertical input window length; register set a [9ah[7:0]; 9bh[3:0]] and b [cah[7:0]; cbh[3:0]] note 1. for trigger condition: strc[1:0] 90h[1:0] = 00; yo + ys > (number of input lines per field - 2), will result in field dropping. other trigger conditions: ys > (number of input lines per field - 2), will result in field dropping. horizontal input acquisition window definition input window length in x (horizontal) direction (1) control bits a [97h[3:0]] b [c7h[3:0]] a [96h[7:0]] b [c6h[7:0]] xs11 xs10 xs9 xs8 xs7 xs6 xs5 xs4 xs3 xs2 xs1 xs0 no output 0 0 0000000000 odd lengths are allowed, but will be rounded up to even lengths 0 0 0000000001 maximum possible number of input pixels = 4095 1 1 1111111111 vertical input acquisition window definition offset in y (vertical) direction (1) control bits a [99h[3:0]] b [c9h[3:0]] a [98h[7:0]] b [c8h[7:0]] yo11 yo10 yo9 yo8 yo7 yo6 yo5 yo4 yo3 yo2 yo1 yo0 line offset = 0 0 0 0000000000 line offset = 1 0 0 0000000001 maximum line offset = 4095 1 1 1111111111 vertical input acquisition window definition input window length in y (vertical) direction (1) control bits a [9bh[3:0]] b [cbh[3:0]] a [9ah[7:0]] b [cah[7:0]] ys11 ys10 ys9 ys8 ys7 ys6 ys5 ys4 ys3 ys2 ys1 ys0 no input lines 0 0 0000000000 1 input line 0 0 0000000001 maximum possible number of input lines = 4095 1 1 1111111111
2004 jun 29 180 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.5.8 subaddresses 9ch to 9fh table 225 horizontal output window length; register set a [9ch[7:0]; 9dh[3:0]] and b [cch[7:0]; cdh[3:0]] notes 1. reference for counting are luminance samples. 2. if the desired output length is greater than the number of scaled output pixels, the last scaled pixel is repeated. table 226 vertical output window length; register set a [9eh[7:0]; 9fh[3:0]] and b [ceh[7:0]; cfh[3:0]] note 1. if the desired output length is greater than the number of scaled output lines, the processing is cut. 18.2.5.9 subaddresses a0h to a2h table 227 horizontal prescaling; register set a [a0h[5:0]] and b [d0h[5:0]] horizontal output acquisition window definition number of desired output pixel in x (horizontal) direction (1) control bits a [9dh[3:0]] b [cdh[3:0]] a [9ch[7:0]] b [cch[7:0]] xd11 xd10 xd9 xd8 xd7 xd6 xd5 xd4 xd3 xd2 xd1 xd0 no output 0 0 0000000000 odd lengths are allowed, but will be ?lled up to even lengths 0 0 0000000001 maximum possible number of input pixels = 4095; note 2 1 1 1111111111 vertical output acquisition window definition number of desired output lines in y (vertical) direction control bits a [9fh[3:0]] b [cfh[3:0]] a [9eh[7:0]] b [ceh[7:0]] yd11 yd10 yd9 yd8 yd7 yd6 yd5 yd4 yd3 yd2 yd1 yd0 no output 0 0 0000000000 1pixel 0 0 0000000001 maximum possible number of output lines = 4095; note 1 1 1 1111111111 horizontal integer prescaling ratio (xpsc) control bits 5 to 0 xpsc5 xpsc4 xpsc3 xpsc2 xpsc1 xpsc0 not allowed 000000 downscale = 1 000001 downscale = 1 2 000010 ... ... ... ... ... ... ... downscale = 1 63 111111
2004 jun 29 181 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 228 accumulation length; register set a [a1h[5:0]] and b [d1h[5:0]] table 229 prescaler dc gain and fir pre?lter control; register set a [a2h[7:4]] and b [d2h[7:4]]; note 1 note 1. x = dont care. table 230 prescaler dc gain and fir pre?lter control; register set a [a2h[3:0]] and b [d2h[3:0]]; note 1 note 1. x = dont care. horizontal prescaler accumulation sequence length (xacl) control bits 5 to 0 xacl5 xacl4 xacl3 xacl2 xacl1 xacl0 accumulation length = 1 000000 accumulation length = 2 000001 ... ... ... ... ... ... ... accumulation length = 64 111111 fir prefilter control control bits 7 to 4 pfuv1 pfuv0 pfy1 pfy0 luminance fir ?lter bypassed x x 0 0 h_y(z) = 1 4 (1 2 1) x x 0 1 h_y(z) = 1 8 ( - 1 1 1.75 4.5 1.75 1 - 1) x x 1 0 h_y(z) = 1 8 (12221) x x 1 1 chrominance fir ?lter bypassed 0 0 x x h_uv(z) = 1 4 (1 2 1) 0 1 x x h_uv(z) = 1 32 (381083) 1 0 x x h_uv(z) = 1 8 (12221) 1 1 x x prescaler dc gain control bits 3 to 0 xc2_1 xdcg2 xdcg1 xdcg0 prescaler output is renormalized by gain factor = 1 x 0 0 0 prescaler output is renormalized by gain factor = 1 2 x001 prescaler output is renormalized by gain factor = 1 4 x010 prescaler output is renormalized by gain factor = 1 8 x011 prescaler output is renormalized by gain factor = 1 16 x100 prescaler output is renormalized by gain factor = 1 32 x101 prescaler output is renormalized by gain factor = 1 64 x110 prescaler output is renormalized by gain factor = 1 128 x111 weighting of all accumulated samples is factor 1; e.g. xacl = 4 t sequence 1 + 1+1+1+1 0xxx weighting of samples inside sequence is factor 2; e.g. xacl = 4 t sequence 1 + 2+2+2+1 1xxx
2004 jun 29 182 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 18.2.5.10 subaddresses a4h to a6h table 231 luminance brightness control; register set a [a4h[7:0]] and b [d4h[7:0]] table 232 luminance contrast control; register set a [a5h[7:0]] and b [d5h[7:0]] table 233 chrominance saturation control; register set a [a6h[7:0]] and b [d6h[7:0]] 18.2.5.11 subaddresses a8h to aeh table 234 horizontal luminance scaling increment; register set a [a8h[7:0]; a9h[7:0]] and b [d8h[7:0]; d9h[7:0]] note 1. bits xscy[15:13] are reserved and are set to logic 0. luminance brightness control control bits 7 to 0 brig7 brig6 brig5 brig4 brig3 brig2 brig1 brig0 value = 0 00000000 nominal value = 128 10000000 value = 255 11111111 luminance contrast control control bits 7 to 0 cont7 cont6 cont5 cont4 cont3 cont2 cont1 cont0 gain = 0 00000000 gain = 1 64 00000001 nominal gain = 64 01000000 gain = 127 64 01111111 chrominance saturation control control bits 7 to 0 satn7 satn6 satn5 satn4 satn3 satn2 satn1 satn0 gain = 0 00000000 gain = 1 64 00000001 nominal gain = 64 01000000 gain = 127 64 01111111 horizontal luminance scaling increment control bits a [a9h[7:4]] b [d9h[7:4]] a [a9h[3:0]] b [d9h[3:0]] a [a8h[7:4]] b [d8h[7:4]] a [a8h[3:0]] b [d8h[3:0]] xscy[15:12] (1) xscy[11:8] xscy[7:4] xscy[3:0] scale = 1024 1 (theoretical) zoom 0000 0000 0000 0000 scale = 1024 294 , lower limit de?ned by data path structure 0000 0001 0010 0110 scale = 1024 1023 zoom 0000 0011 1111 1111 scale = 1, equals 1024 0000 0100 0000 0000 scale = 1024 1025 downscale 0000 0100 0000 0001 scale = 1024 8191 downscale 0001 1111 1111 1111
2004 jun 29 183 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 235 horizontal luminance phase offset; register set a [aah[7:0]] and b [dah[7:0]] table 236 horizontal chrominance scaling increment; register set a [ach[7:0]; adh[7:0]] and b [dch[7:0]; ddh[7:0]] note 1. bits xscc[15:13] are reserved and are set to logic 0. table 237 horizontal chrominance phase offset; register set a [aeh[7:0]] and b [deh[7:0]] 18.2.5.12 subaddresses b0h to bfh table 238 vertical luminance scaling increment; register set a [b0h[7:0]; b1h[7:0]] and b [e0h[7:0]; e1h[7:0]] horizontal luminance phase offset control bits 7 to 0 xphy7 xphy6 xphy5 xphy4 xphy3 xphy2 xphy1 xphy0 offset = 0 0 0 000000 offset = 1 32 pixel 00000001 offset = 32 32 =1pixel 00100000 offset = 255 32 pixel 11111111 horizontal chrominance scaling increment control bits a [adh[7:4]] b [ddh[7:4]] a [adh[3:0]] b [ddh[3:0]] a [ach[7:4]] b [dch[7:4]] a [ach[3:0]] b [dch[3:0]] xscc[15:12] (1) xscc[11:8] xscc[7:4] xscc[3:0] this value must be set to the luminance value 1 2 xscy[15:0] 0000 0000 0000 0000 0000 0000 0000 0001 0001 1111 1111 1111 horizontal chrominance phase offset control bits 7 to 0 xphc7 xphc6 xphc5 xphc4 xphc3 xphc2 xphc1 xphc0 this value must be set to 1 2 xphy[7:0] 0 0 000000 00000001 11111111 vertical luminance scaling increment control bits a [b1h[7:4]] b [e1h[7:4]] a [b1h[3:0]] b [e1h[3:0]] a [b0h[7:4]] b [e0h[7:4]] a [b0h[3:0]] b [e0h[3:0]] yscy[15:12] yscy[11:8] yscy[7:4] yscy[3:0] scale = 1024 1 (theoretical) zoom 0000 0000 0000 0001 scale = 1024 1023 zoom 0000 0011 1111 1111 scale = 1, equals 1024 0000 0100 0000 0000 scale = 1024 1025 downscale 0000 0100 0000 0001 scale = 1 63.999 downscale 1111 1111 1111 1111
2004 jun 29 184 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 239 vertical chrominance scaling increment; register set a [b2h[7:0]; b3h[7:0]] and b [e2h[7:0]; e3h[7:0]] table 240 vertical scaling mode control; register set a [b4h[4 and 0]] and b [e4h[4 and 0]]; note 1 note 1. x = dont care. table 241 vertical chrominance phase offset 00; register set a [b8h[7:0]] and b [e8h[7:0]] table 242 vertical luminance phase offset 00; register set a [bch[7:0]] and b [ech[7:0]] vertical chrominance scaling increment control bits a [b3h[7:4]] b [e3h[7:4]] a [b3h[3:0]] b [e3h[3:0]] a [b2h[7:4]] b [e2h[7:4]] a [b2h[3:0]] b [e2h[3:0]] yscc[15:12] yscc[11:8] yscc[7:4] yscc[3:0] this value must be set to the luminance value yscy[15:0] 0000 0000 0000 0001 1111 1111 1111 1111 vertical scaling mode control control bits 4 and 0 ymir ymode vertical scaling performs linear interpolation between lines x 0 vertical scaling performs higher order accumulating interpolation, better alias suppression x1 no mirroring 0x lines are mirrored 1 x vertical chrominance phase offset control bits 7 to 0 ypc07 ypc06 ypc05 ypc04 ypc03 ypc02 ypc01 ypc00 offset = 0 0 0 000000 offset = 32 32 = 1 line 0 0 100000 offset = 255 32 lines 1 1 111111 vertical luminance phase offset control bits 7 to 0 ypy07 ypy06 ypy05 ypy04 ypy03 ypy02 ypy01 ypy00 offset = 0 0 0 000000 offset = 32 32 = 1 line 0 0 100000 offset = 255 32 lines 1 1 111111
2004 jun 29 185 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 19 programming start set-up of digital video decoder part 19.1 decoder part the given values force the following behaviour of the SAA7108AE; saa7109ae decoder part: the analog input ai11 expects an ntsc m, pal b, d, g, h and i or secam signal in cvbs format; analog anti-alias filter and agc active automatic field detection enabled standard itu 656 output format enabled on the expansion port contrast, brightness and saturation control in accordance with itu standards adaptive comb filter for luminance and chrominance activated pins llc, llc2, xtoutd, rts0, rts1 and rtco are set to 3-state. table 243 decoder part start set-up values for the three main standards sub address (hex) register function bit name (1) values (hex) ntsc m pal b, d, g, h and i secam 00 chip version id7 to id4 read only 01 increment delay x, x, x, x, idel3 to idel0 08 08 08 02 analog input control 1 fuse1, fuse0, gudl1, gudl0 and mode3 to mode0 c0 c0 c0 03 analog input control 2 x, hlnrs, vbsl, wpoff, holdg, gafix, gai28 and gai18 10 10 10 04 analog input control 3 gai17 to gai10 90 90 90 05 analog input control 4 gai27 to gai20 90 90 90 06 horizontal sync start hsb7 to hsb0 eb eb eb 07 horizontal sync stop hss7 to hss0 e0 e0 e0 08 sync control aufd, fsel, foet, htc1, htc0, hpll, vnoi1 and vnoi0 98 98 98 09 luminance control byps, ycomb, ldel, lubw and lufi3 to lufi0 40 40 1b 0a luminance brightness control dbri7 to dbri0 80 80 80 0b luminance contrast control dcon7 to dcon0 44 44 44 0c chrominance saturation control dsat7 to dsat0 40 40 40 0d chrominance hue control huec7 to huec0 00 00 00 0e chrominance control 1 cdto, cstd2 to cstd0, dcvf, fctc, x and ccomb 89 81 d0 0f chrominance gain control acgc and cgain6 to cgain0 2a 2a 80 10 chrominance control 2 offu1, offu0, offv1, offv0, chbw and lcbw2 to lcbw0 0e 06 00 11 mode/delay control colo, rtp1, hdel1, hdel0, rtp0 and ydel2 to ydel0 00 00 00
2004 jun 29 186 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae note 1. all x values must be set to logic 0. 12 rt signal control rtse13 to rtse10 and rtse03 to rtse00 00 00 00 13 rt/x port output control rtce, xrhs, xrvs1, xrvs0, hlsel and ofts2 to ofts0 00 00 00 14 analog/adc/compatibility control cm99, uptcv, aosl1, aosl0, xtoute, oldsb, apck1 and apck0 00 00 00 15 vgate start, fid change vsta7 to vsta0 11 11 11 16 vgate stop vsto7 to vsto0 fe fe fe 17 miscellaneous, vgate con?guration and msbs llce, llc2e, x, x, x, vgps, vsto8 and vsta8 40 40 40 18 raw data gain control rawg7 to rawg0 40 40 40 19 raw data offset control rawo7 to rawo0 80 80 80 1a to 1e reserved x, x, x, x, x, x, x, x 00 00 00 1f status byte video decoder (oldsb = 0) intl, hlvln, fidt, glimt, glimb, wipa, copro and rdcap read only sub address (hex) register function bit name (1) values (hex) ntsc m pal b, d, g, h and i secam
2004 jun 29 187 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 19.2 audio clock generation part the given values force the following behaviour of the SAA7108AE; saa7109ae audio clock generation part: used crystal is 24.576 mhz expected field frequency is 59.94 hz (e.g. ntsc m standard) generated audio master clock frequency at pin amclk is 256 44.1 khz = 11.2896 mhz amclk is externally connected to amxclk (short-cut between pins k12 and j12) asclk = 32 44.1 khz = 1.4112 mhz alrclk is 44.1 khz. table 244 audio clock part set-up values note 1. all x values must be set to logic 0. sub address (hex) register function bit name (1) start values 76543210 hex 30 audio master clock cycles per ?eld; bits 7 to 0 acpf7 to acpf0 1 0 1 1 1 1 0 0 bc 31 audio master clock cycles per ?eld; bits 15 to 8 acpf15 to acpf8 1 1 0 1 1 1 1 1 df 32 audio master clock cycles per ?eld; bits 17 and 16 x, x, x, x, x, x, acpf17 and acpf16 00000010 02 33 reserved x, x, x, x, x, x, x, x 0 0 0 0 0 0 0 0 00 34 audio master clock nominal increment; bits 7 to 0 acni7 to acni0 1 1 0 0 1 1 0 1 cd 35 audio master clock nominal increment; bits 15 to 8 acni15 to acni8 1 1 0 0 1 1 0 0 cc 36 audio master clock nominal increment; bits 21 to 16 x, x, acni21 to acni16 0 0 1 1 1 0 1 0 3a 37 reserved x, x, x, x, x, x, x, x 0 0 0 0 0 0 0 0 00 38 clock ratio amxclk to asclk x, x, sdiv5 to sdiv0 0 0 0 0 0 0 1 1 03 39 clock ratio asclk to alrclk x, x, lrdiv5 to lrdiv0 0 0 0 1 0 0 0 0 10 3a audio clock generator basic set-up x, x, x, x, apll, amvr, lrph, scph 00000000 00 3b to 3f reserved x, x, x, x, x, x, x, x 0 0 0 0 0 0 0 0 00
2004 jun 29 188 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 19.3 data slicer and data type control part the given values force the following behaviour of the SAA7108AE; saa7109ae vbi data slicer part: closed captioning data is expected at line 21 of field 1 (60 hz/525 line system) all other lines are processed as active video sliced data are framed by itu 656 like sav/eav sequence (did[5:0] = 3eh t msb of sav/eav = 1). table 245 data slicer start set-up values notes 1. all x values must be set to logic 0. 2. changes for 50 hz/625 line systems: subaddress 5ah = 03h and subaddress 5bh = 03h. sub address (hex) register function bit name (1) start values 76543210 hex 40 slicer control 1 x, ham_n, fce, hunt_n, x, x, x, x 01000000 40 41 to 53 line control register 2 to 20 lcrn_7 to lcrn_0 (n = 2 to 20) 1 1 1 1 1 1 1 1 ff 54 line control register 21 lcr21_7 to lcr21_0 0 1 0 1 1 1 1 1 5f 55 to 57 line control register 22 to 24 lcrn_7 to lcrn_0 (n = 22 to 24) 1 1 1 1 1 1 1 1 ff 58 programmable framing code fc7 to fc0 0 0 0 0 0 0 0 0 00 59 horizontal offset for slicer hoff7 to hoff0 0 1 0 0 0 1 1 1 47 5a vertical offset for slicer voff7 to voff0 0 0 0 0 0 1 1 0 06 (2) 5b ?eld offset and msbs for horizontal and vertical offset foff, recode, x, voff8, x, hoff10 to hoff8 10000011 83 (2) 5c reserved x, x, x, x, x, x, x, x 0 0 0 0 0 0 0 0 00 5d header and data identi?cation code control fvref, x, did5 to did0 0 0 1 1 1 1 1 0 3e 5e sliced data identi?cation code x, x, sdid5 to sdid0 0 0 0 0 0 0 0 0 00 5f reserved x, x, x, x, x, x, x, x 0 0 0 0 0 0 0 0 00 60 slicer status byte 0 - , fc8v, fc7v, vpsv, ppv, ccv, - , - read-only register 61 slicer status byte 1 - , - , f21_n, ln8 to ln4 read-only register 62 slicer status byte 2 ln3 to ln0, dt3 to dt0 read-only register
2004 jun 29 189 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 19.4 scaler and interfaces table 246 shows some examples for the scaler programming where: prsc = prescale ratio fisc = fine scale ratio vsc = vertical scale ratio. the ratio is defined as: in the following settings the vbi data slicer is inactive. to activate the vbi data slicer, vitx[1:0] 86h[7:6] has to be set to 11. depending on the vbi data slicer settings, the sliced vbi data is inserted after the end of the scaled video lines, if the regions of the vbi data slicer and scaler overlap. to compensate for the running-in of the vertical scaler, the vertical input window lengths are extended by 2 to 290 lines, respectively 242 lines for xs, but the scaler increment calculations are done with 288, respectively 240 lines. 19.4.1 t rigger condition for trigger condition strc[1:0] 90h[1:0] not equal 00. if the value of (yo + ys) is 3 262 (ntsc), and 312 (pal) the output field rate is reduced to 30 hz and 25 hz respectively. horizontal and vertical offsets (xo and yo) have to be used to adjust the displayed video in the display window. as this adjustment is application dependent, the listed values are only dummy values. 19.4.2 m aximum zoom factor the maximum zoom factor is dependent on the back-end data rate and is therefore back-end clock and data format dependent (8 or 16-bit output). the maximum horizontal zoom is limited to approximately 3.5, due to internal data path restrictions. number of input pixel number of output pixel ---------------------------------------------------------- - 19.4.3 e xamples table 246 example of con?gurations example number scaler source and reference events input window output window scale ratios 1 analog input to 8-bit i port output, with sav/eav codes, 8-bit serial byte stream decoder output at x port; acquisition trigger at falling edge vertical and rising edge horizontal reference signal; h and v gates on igph and igpv, igp0 = vbi sliced data ?ag, igp1 = fifo almost full, level 3 24, idq quali?er logic 1 active 720 240 720 240 prsc = 1; ?sc = 1; vsc = 1 2 analog input to 16-bit output, without sav/eav codes, y on i port, c b -c r on h port and decoder output at x port; acquisition trigger at falling edge vertical and rising edge horizontal reference signal; h and v pulses on igph and igpv, output fid on igp0, igp1 ?xed to logic 1, idq quali?er logic 0 active 704 288 768 288 prsc = 1; ?sc = 0.91667; vsc = 1 3 x port input 8 bit with sav/eav codes, no reference signals on xrh and xrv, xclk as gated clock; ?eld detection and acquisition trigger on different events; acquisition triggers at rising edge vertical and rising edge horizontal; i port output 8-bit with sav/eav codes like example number 1; see table 247 720 240 352 288 prsc = 2; ?sc = 1.022; vsc = 0.8333 4 x port and h port for 16-bit y-c b -c r 4:2:2 input (if no 16-bit output selected); xrh and xrv as references; ?eld detection and acquisition trigger at falling edge of vertical and rising edge of horizontal; i port output 8-bit with sav/eav codes, but y only output 720 288 200 80 prsc = 2; ?sc = 1.8; vsc = 3.6
2004 jun 29 190 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae table 247 scaler and interface con?guration examples i 2 c-bus address (hex) main function example 1 example 2 example 3 example 4 hex dec hex dec hex dec hex dec global settings 80 task enable, idq and back-end clock de?nition 10 - 10 - 10 - 10 - 83 xclk output phase and x port output enable 01 - 01 - 00 - 00 - 84 igph, igpv, igp0 and igp1 output de?nition a0 - c5 - a0 - a0 - 85 signal polarity control and i port byte swapping 10 - 09 - 10 - 10 - 86 fifo ?ag thresholds and video/text arbitration 45 - 40 - 45 - 45 - 87 iclk and idq output phase and i port enable 01 - 01 - 01 - 01 - 88 power save control and software reset f0 - f0 - f0 - f0 - task a: scaler input con?guration and output format settings 90 task handling 00 - 00 - 00 - 00 - 91 scaler input source and format de?nition 08 - 08 - 18 - 38 - 92 reference signal de?nition at scaler input 10 - 10 - 10 - 10 - 93 i port output formats and con?guration 80 - 40 - 80 - 84 - input and output window de?nition 94 horizontal input offset (xo) 10 16 10 16 10 16 10 16 95 00 - 00 - 00 - 00 - 96 horizontal input (source) window length (xs) d0 720 c0 704 d0 720 d0 720 97 02 - 02 - 02 - 02 - 98 vertical input offset (yo) 0a 10 0a 10 0a 10 0a 10 99 00 - 00 - 00 - 00 - 9a vertical input (source) window length (ys) f2 242 22 290 f2 242 22 290 9b 00 - 01 - 00 - 01 - 9c horizontal output (destination) window length (xd) d0 720 00 768 60 352 c8 200 9d 02 - 03 - 01 - 00 - 9e vertical output (destination) window length (yd) f0 240 20 288 20 288 50 80 9f 00 - 01 - 01 - 00 - pre?ltering and prescaling a0 integer prescale (value 00 not allowed) 01 - 01 - 02 - 02 - a1 accumulation length for prescaler 00 - 00 - 02 - 03 - a2 fir pre?lter and prescaler dc normalization 00 - 00 - aa - f2 - a4 scaler brightness control 80 128 80 128 80 128 80 128 a5 scaler contrast control 40 64 40 64 40 64 11 17 a6 scaler saturation control 40 64 40 64 40 64 11 17
2004 jun 29 191 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae horizontal phase scaling a8 horizontal scaling increment for luminance 00 1024 aa 938 18 1048 34 1844 a9 04 - 03 - 04 - 07 - aa horizontal phase offset luminance 00 - 00 - 00 - 00 - ac horizontal scaling increment for chrominance 00 512 d5 469 0c 524 9a 922 ad 02 - 01 - 02 - 03 - ae horizontal phase offset chrominance 00 - 00 - 00 - 00 - vertical scaling b0 vertical scaling increment for luminance 00 1024 00 1024 55 853 66 3686 b1 04 - 04 - 03 - 0e - b2 vertical scaling increment for chrominance 00 1024 00 1024 55 853 66 3686 b3 04 - 04 - 03 - 0e - b4 vertical scaling mode control 00 - 00 - 00 - 01 - b8 to bf vertical phase offsets luminance and chrominance (needs to be used for interlace correct scaled output) start with b8 to bf at 00h, if there are no problems with the interlaced scaled output optimize according to section 9.3.3.2 i 2 c-bus address (hex) main function example 1 example 2 example 3 example 4 hex dec hex dec hex dec hex dec
2004 jun 29 192 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 20 package outline 1 a a 1 e 1 b a 2 a 1 a 2 detail x y unit d y e references outline version european projection issue date 00-03-04 03-01-22 iec jedec jeita mm 0.5 0.3 1.75 15.2 14.8 d 1 13.7 13.0 13.7 13.0 e 1 13 e 2 13 1.25 1.05 y 1 0.6 0.4 0.1 0.15 0.35 dimensions (mm are the original dimensions) sot472-1 144e ms-034 - - - 15.2 14.8 ew 0.3 v 05 10 mm scale sot472-1 bga156: plastic ball grid array package; 156 balls; body 15 x 15 x 1.15 mm a max. y 1 c c e 1 d d 1 x e 1 a b c d e f g h j k l m n p 234567891011121314 b a ball a1 index area e e e 1 b e 2 a c c b ? v m ? w m shape optional (4x) 1/2 e 1/2 e
2004 jun 29 193 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 21 soldering 21.1 introduction to soldering surface mount packages this text gives a very brief insight to a complex technology. a more in-depth account of soldering ics can be found in our data handbook ic26; integrated circuit packages (document order number 9398 652 90011). there is no soldering method that is ideal for all surface mount ic packages. wave soldering can still be used for certain surface mount ics, but it is not suitable for fine pitch smds. in these situations reflow soldering is recommended. 21.2 re?ow soldering reflow soldering requires solder paste (a suspension of fine solder particles, flux and binding agent) to be applied to the printed-circuit board by screen printing, stencilling or pressure-syringe dispensing before package placement. driven by legislation and environmental forces the worldwide use of lead-free solder pastes is increasing. several methods exist for reflowing; for example, convection or convection/infrared heating in a conveyor type oven. throughput times (preheating, soldering and cooling) vary between 100 and 200 seconds depending on heating method. typical reflow peak temperatures range from 215 to 270 c depending on solder paste material. the top-surface temperature of the packages should preferably be kept: below 225 c (snpb process) or below 245 c (pb-free process) C for all bga, htsson-t and ssop-t packages C for packages with a thickness 3 2.5 mm C for packages with a thickness < 2.5 mm and a volume 3 350 mm 3 so called thick/large packages. below 240 c (snpb process) or below 260 c (pb-free process) for packages with a thickness < 2.5 mm and a volume < 350 mm 3 so called small/thin packages. moisture sensitivity precautions, as indicated on packing, must be respected at all times. 21.3 wave soldering conventional single wave soldering is not recommended for surface mount devices (smds) or printed-circuit boards with a high component density, as solder bridging and non-wetting can present major problems. to overcome these problems the double-wave soldering method was specifically developed. if wave soldering is used the following conditions must be observed for optimal results: use a double-wave soldering method comprising a turbulent wave with high upward pressure followed by a smooth laminar wave. for packages with leads on two sides and a pitch (e): C larger than or equal to 1.27 mm, the footprint longitudinal axis is preferred to be parallel to the transport direction of the printed-circuit board; C smaller than 1.27 mm, the footprint longitudinal axis must be parallel to the transport direction of the printed-circuit board. the footprint must incorporate solder thieves at the downstream end. for packages with leads on four sides, the footprint must be placed at a 45 angle to the transport direction of the printed-circuit board. the footprint must incorporate solder thieves downstream and at the side corners. during placement and before soldering, the package must be fixed with a droplet of adhesive. the adhesive can be applied by screen printing, pin transfer or syringe dispensing. the package can be soldered after the adhesive is cured. typical dwell time of the leads in the wave ranges from 3 to 4 seconds at 250 c or 265 c, depending on solder material applied, snpb or pb-free respectively. a mildly-activated flux will eliminate the need for removal of corrosive residues in most applications. 21.4 manual soldering fix the component by first soldering two diagonally-opposite end leads. use a low voltage (24 v or less) soldering iron applied to the flat part of the lead. contact time must be limited to 10 seconds at up to 300 c. when using a dedicated tool, all other leads can be soldered in one operation within 2 to 5 seconds between 270 and 320 c.
2004 jun 29 194 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 21.5 suitability of surface mount ic packages for wave and re?ow soldering methods notes 1. for more detailed information on the bga packages refer to the (lf)bga application note (an01026); order a copy from your philips semiconductors sales office. 2. all surface mount (smd) packages are moisture sensitive. depending upon the moisture content, the maximum temperature (with respect to time) and body size of the package, there is a risk that internal or external package cracks may occur due to vaporization of the moisture in them (the so called popcorn effect). for details, refer to the drypack information in the data handbook ic26; integrated circuit packages; section: packing methods . 3. these transparent plastic packages are extremely sensitive to reflow soldering conditions and must on no account be processed through more than one soldering cycle or subjected to infrared reflow soldering with peak temperature exceeding 217 c 10 c measured in the atmosphere of the reflow oven. the package body peak temperature must be kept as low as possible. 4. these packages are not suitable for wave soldering. on versions with the heatsink on the bottom side, the solder cannot penetrate between the printed-circuit board and the heatsink. on versions with the heatsink on the top side, the solder might be deposited on the heatsink surface. 5. if wave soldering is considered, then the package must be placed at a 45 angle to the solder wave direction. the package footprint must incorporate solder thieves downstream and at the side corners. 6. wave soldering is suitable for lqfp, tqfp and qfp packages with a pitch (e) larger than 0.8 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.65 mm. 7. wave soldering is suitable for ssop, tssop, vso and vssop packages with a pitch (e) equal to or larger than 0.65 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm. 8. image sensor packages in principle should not be soldered. they are mounted in sockets or delivered pre-mounted on flex foil. however, the image sensor package can be mounted by the client on a flex foil by using a hot bar soldering process. the appropriate soldering profile can be provided on request. 9. hot bar or manual soldering is suitable for pmfp packages. package (1) soldering method wave reflow (2) bga, htsson..t (3) , lbga, lfbga, sqfp, ssop..t (3) , tfbga, uson, vfbga not suitable suitable dhvqfn, hbcc, hbga, hlqfp, hso, hsop, hsqfp, hsson, htqfp, htssop, hvqfn, hvson, sms not suitable (4) suitable plcc (5) , so, soj suitable suitable lqfp, qfp, tqfp not recommended (5)(6) suitable ssop, tssop, vso, vssop not recommended (7) suitable cwqccn..l (8) , pmfp (9) , wqccn..l (8) not suitable not suitable
2004 jun 29 195 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 22 data sheet status notes 1. please consult the most recently issued data sheet before initiating or completing a design. 2. the product status of the device(s) described in this data sheet may have changed since this data sheet was published. the latest information is available on the internet at url http://www.semiconductors.philips.com. 3. for data sheets describing multiple type numbers, the highest-level product status determines the data sheet status. level data sheet status (1) product status (2)(3) definition i objective data development this data sheet contains data from the objective speci?cation for product development. philips semiconductors reserves the right to change the speci?cation in any manner without notice. ii preliminary data quali?cation this data sheet contains data from the preliminary speci?cation. supplementary data will be published at a later date. philips semiconductors reserves the right to change the speci?cation without notice, in order to improve the design and supply the best possible product. iii product data production this data sheet contains data from the product speci?cation. philips semiconductors reserves the right to make changes at any time in order to improve the design, manufacturing and supply. relevant changes will be communicated via a customer product/process change noti?cation (cpcn). 23 definitions short-form specification ? the data in a short-form specification is extracted from a full data sheet with the same type number and title. for detailed information see the relevant data sheet or data handbook. limiting values definition ? limiting values given are in accordance with the absolute maximum rating system (iec 60134). stress above one or more of the limiting values may cause permanent damage to the device. these are stress ratings only and operation of the device at these or at any other conditions above those given in the characteristics sections of the specification is not implied. exposure to limiting values for extended periods may affect device reliability. application information ? applications that are described herein for any of these products are for illustrative purposes only. philips semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or modification. 24 disclaimers life support applications ? these products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. philips semiconductors customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify philips semiconductors for any damages resulting from such application. right to make changes ? philips semiconductors reserves the right to make changes in the products - including circuits, standard cells, and/or software - described or contained herein in order to improve design and/or performance. when the product is in full production (status production), relevant changes will be communicated via a customer product/process change notification (cpcn). philips semiconductors assumes no responsibility or liability for the use of any of these products, conveys no licence or title under any patent, copyright, or mask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right infringement, unless otherwise specified.
2004 jun 29 196 philips semiconductors product speci?cation hd-codec SAA7108AE; saa7109ae 25 purchase of philips i 2 c components purchase of philips i 2 c components conveys a license under the philips i 2 c patent to use the components in the i 2 c system provided the system conforms to the i 2 c specification defined by philips. this specification can be ordered using the code 9398 393 40011.
? koninklijke philips electronics n.v. 2004 sca76 all rights are reserved. reproduction in whole or in part is prohibited without the prior written consent of the copyright owne r. the information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. no liability will be accepted by the publisher for any consequence of its use. publication thereof does not con vey nor imply any license under patent- or other industrial or intellectual property rights. philips semiconductors C a worldwide company contact information for additional information please visit http://www.semiconductors.philips.com . fax: +31 40 27 24825 for sales of?ces addresses send e-mail to: sales.addresses@www.semiconductors.philips.com . printed in the netherlands r21/02/pp197 date of release: 2004 jun 29 document order number: 9397 750 13425


▲Up To Search▲   

 
Price & Availability of SAA7108AE

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X